:root {
  --bg: #080a0b;
  --panel: #101213;
  --panel2: #151718;
  --ink: #f5f0e8;
  --muted: #a5a19a;
  --muted2: #777570;
  --gold: #c7a77c;
  --gold2: #e8c99b;
  --line: rgba(224, 204, 171, 0.18);
  --ivory: #f5f0e8;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', 'DM Sans', Arial, sans-serif;
  --max: 1480px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

/* Branded scrollbars for document, drawers and scrollable dialogs. */
html, body, *, *::before, *::after {
  scrollbar-width: thin;
  scrollbar-color: #9a805e #121516;
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #121516; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d6bd98, #806746);
  border: 2px solid #121516;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: #e8c99b; }
::-webkit-scrollbar-corner { background: #121516; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.6;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll Reveal & Entrance Animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="scale"] {
  transform: translateY(20px) scale(0.96);
}
[data-reveal="left"] {
  transform: translateX(-24px);
}
[data-reveal="right"] {
  transform: translateX(24px);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-animate {
  animation: viewFadeIn 0.45s var(--ease-out) both;
}

/* ---------- Core Controls & Typography ---------- */
.footer-links a {
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--gold2);
  transform: translateX(3px);
}

.eyebrow {
  display: block;
  color: #c8ac82;
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 0.24em;
  font-weight: 600;
  text-transform: uppercase;
}

.gold-btn, .outline-btn, .quiet-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  background: var(--gold2);
  color: #211b14;
  min-height: 44px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  border-radius: 999px;
  transition: background 0.22s var(--ease-out), transform 0.22s var(--ease-out), border-color 0.22s, box-shadow 0.22s;
}
.gold-btn:hover {
  background: #f3d8ae;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
.gold-btn span, .outline-btn span, .text-link span {
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.22s var(--ease-out);
}
.gold-btn:hover span, .outline-btn:hover span, .text-link:hover span {
  transform: translate(2px, -1px);
}
.gold-btn.small {
  min-height: 38px;
  padding: 9px 16px;
  white-space: nowrap;
}
.outline-btn {
  background: transparent;
  border-color: rgba(224, 196, 152, 0.55);
  color: #ead8bd;
}
.outline-btn:hover {
  background: rgba(199, 167, 124, 0.12);
  border-color: var(--gold2);
  transform: translateY(-2px);
}
.quiet-btn {
  background: transparent;
  color: #d8cbb7;
  border-color: rgba(255, 255, 255, 0.16);
}
.quiet-btn:hover {
  border-color: var(--gold);
  color: #f3e3c9;
  background: rgba(255, 255, 255, 0.04);
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #171a1c;
  color: #f5f0e8;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.22s var(--ease-out);
}
.google-btn:hover {
  background: #202427;
  border-color: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.section-pad {
  padding-left: 4.5%;
  padding-right: 4.5%;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head.compact { margin-bottom: 24px; }
.section-head h2, .newsletter h2, .workspace-head h1 {
  font: 500 clamp(28px, 3.2vw, 44px)/1.12 var(--serif);
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  color: #ede5d9;
}
.section-head h2 em, .newsletter h2 em, .workspace-head h1 em {
  font-style: italic;
  color: var(--gold2);
}
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  background: none;
  border: 0;
  color: #d9c6a5;
  border-bottom: 1px solid rgba(199, 167, 124, 0.4);
  padding: 9px 0;
  font-size: 11.5px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover {
  color: #fff;
  border-color: var(--gold2);
}

/* ---------- Product Grid & Animated Luxury Product Cards ---------- */
.featured {
  padding-top: 60px;
  padding-bottom: 64px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: linear-gradient(180deg, #131618, #0c0e10);
  transition: border-color 0.3s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cardFadeUp 0.55s var(--ease-out) both;
  animation-delay: var(--card-delay, 0ms);
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 201, 155, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.product-card:hover::before {
  opacity: 1;
}
.product-card:hover {
  border-color: rgba(232, 201, 155, 0.58);
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(232, 201, 155, 0.15);
}
.product-image {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #1c1a17;
}
.product-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(12, 14, 16, 0.72), transparent);
  pointer-events: none;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.product-card:hover .product-image img {
  transform: scale(1.07);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(10, 11, 12, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 201, 155, 0.28);
  border-radius: 999px;
  color: #e8c99b;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 11px;
}
.brandable-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  background: rgba(28, 22, 14, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 201, 155, 0.48);
  border-radius: 999px;
  color: #f3d8ae;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.product-card:hover .brandable-badge {
  background: rgba(232, 201, 155, 0.2);
  transform: translateY(-2px);
}
.favorite-btn {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(15, 17, 18, 0.75);
  backdrop-filter: blur(6px);
  color: #eee;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease-spring);
}
.favorite-btn:hover {
  transform: scale(1.14);
  border-color: var(--gold2);
}
.favorite-btn.active {
  color: #e8c99b;
  background: #2b2116;
  border-color: var(--gold);
  transform: scale(1.08);
}
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}
.product-category {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: #c4a77e;
  text-transform: uppercase;
  font-weight: 600;
}
.product-info h3 {
  font: 500 20px/1.25 var(--serif);
  margin: 6px 0;
  color: #f2ece2;
  transition: color 0.2s;
}
.product-card:hover .product-info h3 {
  color: var(--gold2);
}
.product-info p {
  font-size: 10.5px;
  color: #9b968e;
  margin: 0 0 14px;
}
.product-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}
.price-label {
  font-size: 8px;
  color: #85827c;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.price-value {
  display: block;
  color: #edd4b2;
  font-size: 13.5px;
  font-weight: 600;
}
.view-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 155, 0.22);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #c2a67d;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s;
}
.product-card:hover .view-arrow {
  transform: translate(2px, -2px);
  background: var(--gold2);
  color: #19140d;
  border-color: var(--gold2);
}

/* ---------- Planner & 2D Studio Showcase Banner ---------- */
.planner-banner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 400px;
  background: linear-gradient(135deg, #131618 0%, #0e1012 100%);
  border-top: 1px solid rgba(232, 201, 155, 0.14);
  border-bottom: 1px solid rgba(232, 201, 155, 0.14);
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
  position: relative;
  overflow: hidden;
}
.planner-banner-copy {
  align-self: center;
  padding: 52px 36px 52px 0;
  max-width: 580px;
}
.planner-banner-copy h2 {
  font: 500 clamp(32px, 3.8vw, 52px)/1.06 var(--serif);
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}
.planner-banner-copy h2 em {
  font-style: italic;
  color: var(--gold2);
}
.planner-banner-copy p {
  font-size: 12.5px;
  line-height: 1.8;
  color: #c6c1b9;
  max-width: 500px;
  margin: 0 0 26px;
}
.planner-banner-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.planner-banner-image {
  position: relative;
  min-height: 400px;
  background-image: linear-gradient(90deg, #121517 0%, rgba(18, 21, 23, 0.15) 45%), url('/static/img/embroidered_towel_set.jpg');
  background-size: cover;
  background-position: center;
}
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(12, 14, 16, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232, 201, 155, 0.35);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  color: #f3ede2;
  max-width: 270px;
  animation: floatSlow 5.5s ease-in-out infinite alternate;
}
.floating-badge.badge-top {
  top: 28px;
  right: 28px;
}
.floating-badge.badge-bottom {
  bottom: 28px;
  left: 28px;
  animation-delay: -2.7s;
}
@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-9px); }
}
.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
  flex-shrink: 0;
}
.badge-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(232, 201, 155, 0.16);
  border: 1px solid rgba(232, 201, 155, 0.4);
  color: var(--gold2);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.floating-badge strong {
  display: block;
  font-size: 11.5px;
  color: #fff;
}
.floating-badge small {
  display: block;
  font-size: 9.5px;
  color: #b8b1a5;
  margin-top: 2px;
}

/* ---------- Newsletter / Enquiry Strip ---------- */
.newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ece3d5 0%, #dfd3c1 100%);
  color: #28231d;
}
.newsletter .eyebrow { color: #785e3e; }
.newsletter h2 { color: #262019; font-size: clamp(28px, 3.2vw, 38px); }
.newsletter h2 em { color: #826542; }
.newsletter-form { width: min(540px, 52%); }
.newsletter-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 12px;
  color: #524638;
  font-weight: 600;
}
.newsletter-form > div {
  display: flex;
  gap: 10px;
  border-bottom: 1.5px solid #8e7d66;
  padding-bottom: 6px;
}
.newsletter-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  padding: 12px 6px;
  color: #221c15;
  font-size: 13px;
}
.newsletter-form input::placeholder { color: #756b5e; }
.newsletter-form .gold-btn {
  flex-shrink: 0;
  background: #201a14;
  color: #f4e9d8;
  border-color: #201a14;
}
.newsletter-form .gold-btn:hover {
  background: #332a21;
  color: #fff;
}
.newsletter-form small {
  display: block;
  color: #6b6053;
  font-size: 10px;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #07090a;
  padding: 48px 4.5% 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 1.1fr 1.35fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 38px;
}
.footer-brand { align-items: flex-start; min-width: auto; }
.footer-brand .brand-main { font-size: 19px; }
.footer-top > p {
  font: 400 18px/1.42 var(--serif);
  color: #c8b8a0;
  margin: 0;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 18px;
  color: #bdb6ac;
  font-size: 11.5px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #bbb4a7;
  font-size: 11px;
}
.footer-contact small {
  color: #c7a77c;
  letter-spacing: 0.16em;
  font-size: 9px;
  font-weight: 600;
  margin-bottom: 2px;
}
.footer-contact a {
  color: #efe3d0;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--gold2); }
.footer-contact span { color: #8c8880; font-size: 10.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #7c7a73;
  flex-wrap: wrap;
}

/* ---------- Workspace Views ---------- */
.workspace {
  padding-top: 42px;
  padding-bottom: 80px;
  min-height: 72vh;
  background: radial-gradient(circle at 50% 0%, rgba(232, 201, 155, 0.05), transparent 55%), #0b0d0e;
}
.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.workspace-head h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  margin-top: 8px;
}
.workspace-head p {
  color: #a8a298;
  margin: 8px 0 0;
  font-size: 12.5px;
  max-width: 720px;
}
.workspace-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.workspace-head-actions .outline-btn,
.workspace-head-actions .gold-btn {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 11px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(18, 21, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.field, .toolbar select, .toolbar input, .form-field input, .form-field select, .form-field textarea, .planner-input {
  background: #111416;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  padding: 11px 14px;
  min-height: 42px;
  outline: none;
  border-radius: 10px;
  font-size: 12.5px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.toolbar input { min-width: 240px; flex: 1; }
.toolbar select { min-width: 160px; }
.field:focus, .toolbar select:focus, .toolbar input:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus, .planner-input:focus {
  border-color: var(--gold2);
  box-shadow: 0 0 0 3px rgba(232, 201, 155, 0.12);
  background: #15191c;
}
.toolbar .gold-btn { min-height: 42px; padding: 8px 18px; }

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cat-pill {
  background: #131618;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc5b9;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
}
.cat-pill:hover {
  border-color: rgba(232, 201, 155, 0.5);
  color: #fff;
  transform: translateY(-1px);
}
.cat-pill.active {
  background: var(--gold2);
  color: #1d1710;
  border-color: var(--gold2);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(232, 201, 155, 0.22);
}

.product-grid.workspace-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.empty-state {
  padding: 52px 24px;
  text-align: center;
  color: #aaa;
  border: 1px dashed rgba(232, 201, 155, 0.28);
  border-radius: 14px;
  background: #101315;
}
.empty-state h3 {
  font: 400 28px var(--serif);
  color: #e4d8c7;
  margin: 0 0 8px;
}

/* ---------- Collections & Landmark Projects ---------- */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.collection-card {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #141718;
  transition: transform 0.4s var(--ease-out), border-color 0.35s, box-shadow 0.4s;
  animation: cardFadeUp 0.55s var(--ease-out) both;
}
.collection-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 201, 155, 0.55);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58);
}
.collection-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  opacity: 0.74;
  transition: transform 0.75s var(--ease-out), opacity 0.4s;
}
.collection-card:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}
.collection-card div {
  position: absolute;
  inset: auto 18px 18px;
  background: linear-gradient(180deg, rgba(10, 12, 14, 0.65), rgba(10, 12, 14, 0.94));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.collection-card h3 {
  font: 500 25px/1.15 var(--serif);
  margin: 4px 0 6px;
  color: #f5efe6;
}
.collection-card p {
  font-size: 11px;
  color: #dfd8ce;
  margin: 0 0 12px;
  line-height: 1.55;
}
.collection-card button {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gold);
  padding: 5px 0;
  color: var(--gold2);
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}
.collection-card button:hover {
  color: #fff;
  border-color: #fff;
}

/* ---------- Hotel Room Planner (BOQ Calculator) ---------- */
.planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.78fr);
  gap: 22px;
  align-items: start;
}
.panel {
  background: linear-gradient(165deg, #131618, #0e1012);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.panel h3 {
  font: 500 26px var(--serif);
  margin: 0 0 6px;
}
.panel-sub {
  font-size: 11.5px;
  color: #9e9990;
  margin: 0 0 18px;
}
.planner-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 19px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
  min-width: 0;
}
.form-field label {
  font-size: 10.5px;
  color: #cbc4b8;
  letter-spacing: 0.03em;
  font-weight: 500;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-width: 0;
}
.room-type-row {
  display: grid;
  grid-template-columns: 1.5fr 0.65fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.planner-input { width: 100%; min-width: 0; }
.tiny-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #3d3a34;
  color: #cfb186;
  background: rgba(255, 255, 255, 0.02);
  font-size: 16px;
  transition: all 0.2s;
}
.tiny-icon:hover {
  border-color: #f87171;
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
}
.room-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c0b8ad;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  font-size: 12px;
}
.room-summary strong {
  font: 600 26px var(--serif);
  color: var(--gold2);
}
.planner-table-scroll { overflow-x: auto; }
.planner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.planner-table th {
  text-align: left;
  font-size: 9px;
  color: #b5aca0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #171a1c;
  padding: 12px 10px;
  border-bottom: 1px solid #3a3934;
}
.planner-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
}
.planner-table input {
  width: 74px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: #090b0c;
  border: 1px solid rgba(232, 201, 155, 0.24);
  color: #eee;
}
.planner-product {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}
.planner-product img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #222;
  flex-shrink: 0;
}
.planner-product strong {
  display: block;
  font-weight: 600;
  color: #ece5da;
}
.planner-product small {
  color: #9c968c;
  font-size: 9.5px;
}
.planner-total {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.planner-total span { color: #b5afa4; font-size: 12px; }
.planner-total strong { font: 600 30px var(--serif); color: var(--gold2); }
.planner-notice {
  border-left: 2.5px solid var(--gold);
  padding: 12px 15px;
  border-radius: 0 10px 10px 0;
  background: rgba(232, 201, 155, 0.05);
  color: #d0c7b8;
  font-size: 11px;
  line-height: 1.65;
  margin-top: 16px;
}
.planner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.planner-actions button { flex: 1; min-width: 140px; }
.preset-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.preset-btn {
  background: #15181a;
  border: 1px solid #393832;
  border-radius: 999px;
  color: #c8c2b8;
  padding: 9px 15px;
  font-size: 11px;
  transition: all 0.2s;
}
.preset-btn:hover { border-color: var(--gold2); color: #fff; }
.preset-btn.active {
  color: #1c1711;
  background: var(--gold2);
  border-color: var(--gold2);
  font-weight: 600;
}

/* ---------- Upgraded 2D Branding Studio ---------- */
.branding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.88fr);
  gap: 22px;
  align-items: start;
}
.studio-canvas-wrap {
  background: radial-gradient(circle at 50% 45%, #222629, #121416);
  border: 1px solid rgba(232, 201, 155, 0.26);
  border-radius: 16px;
  padding: 16px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
}
.studio-canvas-wrap canvas {
  max-width: 100%;
  max-height: 560px;
  width: 100%;
  height: auto;
  object-fit: contain;
  touch-action: none;
  cursor: grab;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}
.studio-canvas-wrap canvas:active { cursor: grabbing; }
.studio-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  justify-content: space-between;
  align-items: center;
}
.studio-tab-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.studio-tab {
  background: #151819;
  border: 1px solid #393832;
  border-radius: 999px;
  color: #c2bcb2;
  padding: 9px 15px;
  font-size: 11px;
  transition: all 0.2s;
}
.studio-tab.active {
  background: var(--gold2);
  color: #211b14;
  border-color: var(--gold2);
  font-weight: 600;
}
.studio-controls .form-field { margin-bottom: 12px; }
.studio-controls {
  border-color: rgba(232, 201, 155, 0.24);
  background: linear-gradient(145deg, #131618, #0e1011);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  display: block;
}
.studio-controls > h3 {
  font: 500 27px/1.1 var(--serif);
  margin: 7px 0 6px;
  color: #f0e8db;
}
.studio-controls > .panel-sub {
  margin: 0 0 15px;
  line-height: 1.6;
}
.studio-workflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 10px 12px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #0c0e0f;
  color: #8c877e;
  font-size: 10px;
}
.studio-workflow span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.studio-workflow span.active {
  color: var(--gold2);
  font-weight: 600;
}
.studio-workflow i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-size: 9px;
}
.studio-workflow > b { color: #615b50; font-weight: 400; }

.studio-product-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  margin: 0 0 10px;
  border: 1px solid rgba(232, 201, 155, 0.26);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(232, 201, 155, 0.1), rgba(255, 255, 255, 0.02));
}
.studio-product-card img {
  display: block;
  width: 78px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: #202323;
}
.studio-product-card > div { min-width: 0; }
.studio-product-card .eyebrow { font-size: 7.5px; letter-spacing: 0.16em; }
.studio-product-card strong {
  display: block;
  margin: 3px 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #f1e8dc;
}
.studio-product-card small {
  display: block;
  font-size: 9.5px;
  color: #a8a196;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.color-input {
  width: 100%;
  height: 40px;
  padding: 4px !important;
  cursor: pointer;
}
.range-label {
  display: flex;
  justify-content: space-between;
  color: #c9c1b4;
  font-size: 10.5px;
  margin: 5px 0;
}
.studio-controls input[type=range] {
  width: 100%;
  accent-color: var(--gold2);
}
.studio-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.tool-btn {
  background: #191c1e;
  border: 1px solid #3c3d38;
  border-radius: 9px;
  color: #ded5c7;
  padding: 8px 12px;
  font-size: 10.5px;
  font-weight: 500;
  transition: all 0.18s var(--ease-out);
}
.tool-btn:hover {
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}
.tool-btn.active {
  background: #2c2419;
  border-color: var(--gold2);
  color: var(--gold2);
  font-weight: 600;
}
.color-swatches {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.swatch-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 0;
  transition: transform 0.18s var(--ease-spring), border-color 0.18s;
}
.swatch-btn:hover, .swatch-btn.active {
  transform: scale(1.18);
  border-color: #fff;
}
.upload-dropzone {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px dashed rgba(232, 201, 155, 0.42);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: linear-gradient(145deg, rgba(232, 201, 155, 0.06), rgba(255, 255, 255, 0.015));
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
}
.upload-dropzone:hover, .upload-dropzone:focus-visible, .upload-dropzone.dragover {
  background: rgba(232, 201, 155, 0.11);
  border-color: var(--gold2);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 201, 155, 0.1);
  transform: translateY(-1px);
}
.upload-dropzone.has-logo {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.05);
}
.upload-dropzone strong {
  font-size: 11px;
  font-weight: 600;
  color: #ead8bd;
  overflow-wrap: anywhere;
}
.upload-dropzone small {
  font-size: 9px;
  color: #989288;
  letter-spacing: 0.04em;
}
.upload-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 201, 155, 0.4);
  border-radius: 9px;
  color: var(--gold2);
  font-size: 17px;
  line-height: 1;
}
.studio-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}
.studio-switch-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  cursor: pointer;
}
.studio-controls .form-field .studio-switch-control {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  margin: -1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.studio-switch-track {
  position: relative;
  display: block;
  width: 34px;
  height: 19px;
  flex: 0 0 34px;
  border: 1px solid #57544d;
  border-radius: 99px;
  background: #252727;
  transition: background 0.18s, border-color 0.18s;
}
.studio-switch-track::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #a29b90;
  transition: transform 0.18s, background 0.18s;
}
.studio-switch-control:checked + .studio-switch-track {
  background: #806746;
  border-color: var(--gold2);
}
.studio-switch-control:checked + .studio-switch-track::after {
  transform: translateX(15px);
  background: #fff4df;
}
.studio-switch-control:focus-visible + .studio-switch-track {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}
.studio-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.studio-switch-copy strong {
  font-size: 10px;
  font-weight: 600;
  color: #d9d1c5;
}
.studio-switch-copy small {
  font-size: 8.5px;
  color: #8f8a80;
  line-height: 1.35;
}
.save-strip {
  padding: 12px 15px;
  border-radius: 12px;
  background: #171612;
  border: 1px solid rgba(199, 167, 124, 0.35);
  font-size: 11px;
  color: #d6c6ae;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Account & Tables ---------- */
.account-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account-tab {
  padding: 12px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  color: #c2bab0;
  font-size: 11.5px;
  transition: all 0.2s;
}
.account-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}
.account-tab.active {
  background: #181b1d;
  border-color: rgba(232, 201, 155, 0.38);
  color: var(--gold2);
  font-weight: 600;
}
.account-main { min-width: 0; }
.auth-card {
  max-width: 500px;
  margin: 12px auto;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(160deg, #141719, #0e1012);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.auth-card h2 { font: 500 34px/1.12 var(--serif); margin: 8px 0; }
.auth-card > p { font-size: 12px; color: #a8a298; margin: 0 0 22px; }
.full { width: 100%; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.metric-card {
  background: linear-gradient(165deg, #16191b, #111315);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 201, 155, 0.35);
}
.metric-card small { display: block; color: #a39d93; font-size: 10.5px; }
.metric-card strong {
  display: block;
  font: 600 32px var(--serif);
  color: var(--gold2);
  margin-top: 6px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11.5px;
  min-width: 640px;
}
.data-table th {
  text-align: left;
  background: #171a1c;
  color: #b5aca0;
  padding: 13px 12px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid #393a35;
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #ded9d0;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(232, 201, 155, 0.04); }
.status-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #24211b;
  border: 1px solid rgba(232, 201, 155, 0.35);
  color: #e6c89c;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-section-head h3 { font: 500 26px var(--serif); margin: 0; }
.admin-section-head p { color: #9b968e; font-size: 11px; margin: 4px 0 0; }
.notification-card {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.notification-card strong { font-size: 12.5px; font-weight: 600; color: #efe8dc; }
.notification-card p { font-size: 11.5px; color: #b5afa4; margin: 5px 0; }
.notification-card small { font-size: 9.5px; color: #858078; }
.quote-detail-items { display: grid; gap: 8px; margin: 12px 0; }
.quote-detail-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #171a1c;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.quote-detail-line small { color: #a39d93; }

/* ---------- Overlays, Cart Drawer & Smooth Modals ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), visibility 0.28s;
}
.overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  z-index: 55;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(460px, 100vw);
  background: #0e1012;
  border-left: 1px solid var(--line);
  transform: translateX(103%);
  transition: transform 0.34s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 26px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.65);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font: 500 30px var(--serif); margin: 5px 0; }
.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 155, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: #e8e0d3;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all 0.2s var(--ease-out);
}
.close-btn:hover {
  background: var(--gold2);
  color: #19130c;
  border-color: var(--gold2);
  transform: rotate(90deg);
}
.cart-items { overflow: auto; flex: 1; padding: 10px 0; }
.cart-line {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: cardFadeUp 0.3s var(--ease-out) both;
}
.cart-line img {
  width: 74px;
  height: 82px;
  border-radius: 9px;
  object-fit: cover;
  background: #222;
}
.cart-line h4 { font: 500 17px/1.25 var(--serif); margin: 3px 0; }
.cart-line small { display: block; color: #aaa094; font-size: 9.5px; margin-bottom: 6px; }
.cart-line .mini-price { font-size: 11.5px; color: var(--gold2); font-weight: 600; }
.qty-control { display: flex; gap: 0; align-items: center; margin-top: 8px; }
.qty-control button {
  width: 28px;
  height: 28px;
  background: #181b1d;
  color: #e6dfd3;
  border: 1px solid #393a35;
  border-radius: 6px;
  transition: border-color 0.18s, background 0.18s;
}
.qty-control button:hover {
  border-color: var(--gold2);
  background: #222629;
}
.qty-control span { width: 38px; text-align: center; font-size: 11.5px; font-weight: 600; }
.remove-line {
  border: 0;
  background: none;
  color: #999286;
  font-size: 19px;
  padding: 4px;
  transition: color 0.18s;
}
.remove-line:hover { color: #f87171; }
.cart-summary { padding-top: 16px; border-top: 1px solid var(--line); }
.sum-line { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.sum-line strong { font: 600 26px var(--serif); color: var(--gold2); }
.cart-summary p { font-size: 10px; color: #9b958c; line-height: 1.6; }
.cart-summary button { margin-top: 8px; }

.modal {
  display: block;
  position: fixed;
  z-index: 65;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(960px, 94vw);
  max-height: 90dvh;
  overflow: auto;
  border-radius: 18px;
  background: #101315;
  border: 1px solid rgba(218, 192, 152, 0.35);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.8);
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s;
}
.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.modal-close {
  position: sticky;
  float: right;
  top: 0;
  right: 0;
  z-index: 5;
  margin-left: 12px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 28px;
  clear: both;
}
.product-detail-image {
  background: #1c1a17;
  border-radius: 14px;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.product-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}
.product-detail-copy { padding: 4px 4px 4px 0; }
.product-detail-copy h2 { font: 500 34px/1.14 var(--serif); margin: 8px 0; }
.product-detail-copy .detail-desc { color: #c4beb4; font-size: 12px; line-height: 1.75; }
.detail-sku { font-size: 10px; color: #a59e92; letter-spacing: 0.12em; }
.detail-price { font: 600 30px var(--serif); color: var(--gold2); margin: 14px 0 4px; }
.detail-status { font-size: 10.5px; color: #d0c0a6; margin-bottom: 14px; }
.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 18px;
  font-size: 11px;
  border-radius: 10px;
  overflow: hidden;
}
.tier-table td, .tier-table th {
  border: 1px solid #323430;
  padding: 9px 11px;
  text-align: left;
}
.tier-table th {
  font-size: 9px;
  color: #b5ab9e;
  font-weight: 600;
  background: #171a1c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-detail-copy .form-field { max-width: 240px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-actions button { flex: 1; min-width: 145px; }

.auth-modal {
  width: min(500px, calc(100vw - 24px));
  max-height: min(90dvh, 720px);
  overflow: auto;
  padding: 26px;
  border-color: rgba(232, 201, 155, 0.35);
  background: linear-gradient(145deg, #131618, #0c0e10);
}
.google-auth-heading { display: flex; align-items: center; gap: 13px; margin: 12px 0 7px; }
.google-auth-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 201, 155, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.google-auth-mark svg { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
.google-auth-heading h2 { margin: 0; color: #f3ece2; font: 500 28px/1.1 var(--serif); }
.google-auth-copy { margin: 0 0 17px; color: #b0a99e; font-size: 11.5px; line-height: 1.6; }
.google-auth-captcha { min-height: 0; margin: 0 auto 12px; display: flex; justify-content: center; overflow: hidden; }
.google-auth-button { display: flex; justify-content: center; min-height: 0; }
.google-auth-status:empty { display: none; }
.google-auth-status:not(:empty) {
  margin: 13px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(232, 201, 155, 0.22);
  border-radius: 10px;
  background: rgba(232, 201, 155, 0.06);
  color: #decbb0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 95;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 24px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3d9b1, #e2c08d);
  color: #1b150e;
  font-weight: 600;
  padding: 12px 24px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  font-size: 12px;
  transition: all 0.28s var(--ease-spring);
  max-width: 92vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
}

/* =========================================================
   Multi-Resolution & Mobile Responsiveness (4K -> 320px)
   ========================================================= */
@media (min-width: 1650px) {
  .section-pad {
    padding-left: max(4.5%, calc((100vw - 1520px) / 2));
    padding-right: max(4.5%, calc((100vw - 1520px) / 2));
  }
}

@media (max-width: 1180px) {
  .section-pad { padding-left: 24px; padding-right: 24px; }
  .product-image { height: 215px; }
  .product-grid.workspace-grid, .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .planner-layout {
    grid-template-columns: 1fr;
  }
  .branding-layout {
    grid-template-columns: 1fr;
  }
  .account-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 860px) {
  :root { scroll-padding-top: 72px; }
  .section-pad {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .section-head {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .section-head h2 { font-size: 30px; }
  .featured { padding-top: 40px; padding-bottom: 44px; }
  .product-grid, .product-grid.workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .product-image { height: 185px; }
  .product-info { padding: 14px; }
  .product-info h3 { font-size: 17px; }
  .product-info p { font-size: 10px; }

  .planner-banner {
    grid-template-columns: 1fr;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: 0;
  }
  .planner-banner-copy {
    padding: 36px 16px 28px 0;
    max-width: 100%;
  }
  .planner-banner-image {
    min-height: 260px;
    margin-left: -16px;
  }
  .floating-badge.badge-top { top: 16px; right: 16px; }
  .floating-badge.badge-bottom { bottom: 16px; left: 16px; }

  .newsletter {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 42px;
    gap: 20px;
  }
  .newsletter-form { width: 100%; }
  .site-footer { padding: 36px 16px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px 16px; }

  .workspace {
    padding: 28px max(16px, env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .workspace-head {
    display: block;
    padding-bottom: 18px;
  }
  .workspace-head-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .workspace-head-actions > * {
    flex: 1 1 160px;
    min-height: 42px;
  }

  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-left: -4px;
    padding-left: 4px;
    scroll-snap-type: x proximity;
  }
  .cat-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .toolbar input, .toolbar .gold-btn {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .toolbar select { min-width: 0; width: 100%; }

  .collection-cards { grid-template-columns: 1fr; }
  .panel { padding: 18px; border-radius: 14px; }
  .planner-meta { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }

  .account-layout { grid-template-columns: 1fr; }
  .account-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
  }
  .account-nav > div { display: none; }
  .account-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 40px;
  }

  .studio-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .studio-tab-group {
    flex-wrap: nowrap;
  }
  .studio-tab, .studio-tabs .tool-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .studio-canvas-wrap {
    min-height: 300px;
    padding: 10px;
  }
  /* Keep .studio-controls as a clean vertical block on mobile! */
  .studio-controls {
    display: block !important;
  }

  .product-detail { grid-template-columns: 1fr; gap: 18px; }
  .product-detail-image, .product-detail-image img {
    min-height: 240px;
    max-height: 300px;
  }
  .modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 20px 16px;
  }
  .cart-drawer {
    width: min(440px, 100vw);
    padding: calc(18px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  input, select, textarea { font-size: 16px; }
}

/* Mobile Card Layout for Room Planner Table & Small Phones */
@media (max-width: 640px) {
  .planner-table thead { display: none; }
  .planner-table, .planner-table tbody, .planner-table tr, .planner-table td {
    display: block;
    width: 100%;
  }
  .planner-table tr {
    position: relative;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(232, 201, 155, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
  }
  .planner-table td {
    padding: 6px 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .planner-table td:first-child {
    padding-right: 42px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 10px;
  }
  .planner-table td:nth-child(2)::before {
    content: "На 1 номер:";
    font-size: 11px;
    color: #a8a298;
  }
  .planner-table td:nth-child(3)::before {
    content: "Запас / Общие зоны:";
    font-size: 11px;
    color: #a8a298;
  }
  .planner-table td:nth-child(4)::before {
    content: "Итого тираж:";
    font-size: 11px;
    color: #a8a298;
  }
  .planner-table td:nth-child(5)::before {
    content: "Сумма:";
    font-size: 11px;
    color: #a8a298;
  }
  .planner-table td:last-child {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    padding: 0;
  }
  .planner-table input {
    width: 96px;
    text-align: center;
  }

  .workspace-head-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  .workspace-head-actions > * {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .workspace-head-actions > *:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .product-grid, .product-grid.workspace-grid {
    grid-template-columns: 1fr;
  }
  .product-image { height: 215px; }
  .footer-top { grid-template-columns: 1fr; }
  .control-row { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .floating-badge {
    position: static;
    margin: 12px 16px;
    max-width: none;
  }
  .planner-banner-image {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 0;
  }
  .newsletter-form > div {
    flex-direction: column;
    border-bottom: 0;
    gap: 10px;
  }
  .newsletter-form input {
    border-bottom: 1.5px solid #8e7d66;
  }
  .newsletter-form .gold-btn {
    width: 100%;
  }
}

/* Mobile touch polish */
html, body { max-width: 100%; overscroll-behavior-x: none; }
button, a, input, select, textarea, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:focus:not(:focus-visible), a:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
