/* ========================================================
   KREA PRINT 3D - BUSCADOR DE DISEÑOS 3D (MAKERWORLD)
   Responsive, con tarjetas limpias y enlace directo a Calculadora
   ======================================================== */

.krea-designs-page {
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 0 72px;
}

.designs-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #13221a 0%, #1a3024 62%, #14281d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  padding: 24px 26px 20px;
  margin-bottom: 16px;
  box-shadow: 0 14px 36px rgba(10, 26, 17, 0.14);
}

.designs-hero::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.designs-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.26);
  color: #4ade80;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.designs-title {
  position: relative;
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
}

.designs-title span {
  color: #4ade80;
}

.designs-sub {
  position: relative;
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 700px;
  line-height: 1.5;
}

.designs-mode-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.designs-mode-tab {
  height: 38px;
  padding: 0 18px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.designs-mode-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.designs-mode-tab.active {
  background: #009e2e;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 158, 46, 0.34);
}

.design-stl-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #13221a;
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* Buscador */
.designs-search-form {
  margin-bottom: 14px;
}

.designs-search-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d5e2da;
  border-radius: 9999px;
  padding: 5px 6px 5px 16px;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(17, 40, 29, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.designs-search-wrap:focus-within {
  border-color: var(--store-pill-active, #009e2e);
  box-shadow: 0 0 0 3px rgba(0, 158, 46, 0.14);
}

.designs-search-icon {
  color: #5b7265;
  flex-shrink: 0;
}

.designs-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  color: #111827;
  outline: none;
  height: 38px;
}

.designs-search-btn {
  height: 40px;
  padding: 0 22px;
  border-radius: 9999px;
  border: none;
  background: var(--store-pill-active, #009e2e);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.designs-search-btn:hover {
  background: var(--store-primary-green, #008726);
}

/* Píldoras de temas */
.designs-topics-row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.designs-topics-row::-webkit-scrollbar {
  display: none;
}

.designs-topic-pill {
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 9999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.designs-topic-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.designs-topic-pill.active {
  background: #00a832;
  color: #ffffff;
  border-color: #22c55e;
  box-shadow: 0 4px 14px rgba(0, 168, 50, 0.35);
}

.designs-topic-pill-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.designs-topic-pill-fav svg {
  color: #f87171;
}

.designs-topic-pill-fav.active svg {
  color: #ffffff;
}

.designs-fav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 700;
}

.design-fav-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(16, 30, 22, 0.78);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.design-fav-btn:hover {
  transform: scale(1.08);
  background: rgba(16, 30, 22, 0.85);
}

.design-fav-btn.is-fav {
  background: #ef4444;
  border-color: #f87171;
  color: #ffffff;
}

.designs-disclaimer {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.77rem;
  line-height: 1.4;
}

.designs-disclaimer svg {
  color: #4ade80;
  flex-shrink: 0;
  margin-top: 1px;
}

.designs-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(17, 40, 29, 0.08);
  font-size: 0.81rem;
  font-weight: 600;
  color: #163a26;
}

.designs-status-bar::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #009e2e;
  flex-shrink: 0;
}

/* Grid de tarjetas */
.designs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.design-card {
  background: #ffffff;
  border-radius: var(--store-card-radius, 22px);
  overflow: hidden;
  box-shadow: var(--store-card-shadow);
  border: 1px solid rgba(22, 54, 36, 0.06);
  display: flex;
  flex-direction: column;
  contain: layout style paint;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.design-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--store-card-shadow-hover);
}

.design-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eef4f0;
  overflow: hidden;
  cursor: pointer;
}

.design-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.design-card:hover .design-thumb img {
  transform: scale(1.06);
}

.design-photos-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(17, 40, 29, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 9999px;
}

.design-overlay-specs {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.design-overlay-chip {
  background: rgba(255, 255, 255, 0.96);
  color: #11281d;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.design-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.design-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #11281d;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.design-author {
  margin: -4px 0 0;
  font-size: 0.78rem;
  color: #5b7265;
}

.design-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.design-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9999px;
  background: #f1f7f3;
  color: #154026;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.design-spec-chip svg,
.design-overlay-chip svg,
.dm-profile-metrics svg {
  flex-shrink: 0;
  color: var(--store-primary-green, #008726);
}

.design-overlay-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: #11281d;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.design-card-divider {
  border: none;
  border-top: 1px solid #edf2ef;
  margin: 2px 0;
}

.design-actions {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

.design-btn-cart.design-btn-cart-icon,
.design-btn-cart-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  flex-shrink: 0;
}

.design-card {
  cursor: pointer;
}

.design-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.design-card-price strong {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0e1e15;
  line-height: 1;
}

.design-card-price span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #5b7265;
}

.design-btn-calc,
.design-btn-wa {
  flex: 1;
  min-height: 44px;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #00ab33 0%, #008225 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 135, 38, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.design-btn-calc:hover,
.design-btn-wa:hover {
  filter: brightness(1.06);
  box-shadow: 0 7px 20px rgba(0, 135, 38, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.design-btn-cart-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
}
  border-radius: 14px;
  background: #13221a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease;
}

.design-btn-cart-icon:hover {
  background: #1d3529;
  transform: translateY(-1px);
}

/* ═══ MODAL CHECKOUT STL ═══ */
.stl-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.stl-checkout-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.stl-co-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 15, 0.72);
  backdrop-filter: blur(6px);
}

.stl-co-dialog {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 26px;
  padding: 30px 32px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.36);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stl-co-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.stl-co-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #eef8f1;
  color: #008726;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.stl-co-head h2 {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #11281d;
}

.stl-co-close {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid #dbe5df;
  background: #ffffff;
  color: #11281d;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.stl-co-close:hover {
  background: #f3f7f4;
}

.stl-co-item-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6faf7;
  border: 1px solid #e1ede5;
}

.stl-co-item-box img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.stl-co-item-box strong {
  display: block;
  font-size: 1.02rem;
  color: #11281d;
}

.stl-co-item-box span {
  display: block;
  margin-top: 2px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #008726;
}

.stl-co-accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 18px;
  border-radius: 14px;
  background: #13221a;
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.stl-co-accounts strong {
  color: #4ade80;
}

.stl-co-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stl-co-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stl-co-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stl-co-field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #355243;
}

.stl-co-field input,
.stl-co-field select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d5e2da;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: #11281d;
  background: #ffffff;
}

.stl-co-field input:focus,
.stl-co-field select:focus {
  outline: none;
  border-color: #009e2e;
  box-shadow: 0 0 0 3px rgba(0, 158, 46, 0.12);
}

.stl-co-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stl-co-upload-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #cce3d4;
  background: #eef8f1;
  color: #11281d;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.stl-co-upload-btn:hover {
  background: #dff3e6;
}

.stl-co-file-name {
  font-size: 0.84rem;
  color: #5b7265;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stl-co-submit {
  height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00ab33 0%, #008225 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(0, 135, 38, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.stl-co-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(0, 135, 38, 0.34);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .stl-co-dialog {
    padding: 22px 18px;
    gap: 14px;
  }

  .stl-co-row {
    grid-template-columns: 1fr;
  }
}

.stl-co-alert {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 600;
}

.stl-co-success {
  padding: 14px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
  font-size: 0.84rem;
  line-height: 1.5;
}

.stl-co-success-btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.stl-co-go-maker,
.stl-co-wa-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stl-co-go-maker {
  background: #13221a;
  color: #ffffff;
}

.stl-co-wa-btn {
  background: #009e2e;
  color: #ffffff;
}

.stl-co-auth-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 20px;
  border-radius: 18px;
  background: #f6faf7;
  border: 1px solid #d9ebe0;
}

.stl-co-auth-gate[hidden],
.stl-co-accounts[hidden],
.stl-co-form[hidden],
.stl-co-success[hidden],
.stl-co-alert[hidden] {
  display: none !important;
}

.stl-co-auth-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #e4f6ea;
  color: #008726;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stl-co-auth-gate h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #11281d;
}

.stl-co-auth-gate p {
  margin: 0;
  max-width: 460px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #466353;
}

.stl-co-auth-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.stl-co-auth-primary {
  height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00ab33 0%, #008225 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 135, 38, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.stl-co-auth-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 135, 38, 0.32);
}

.stl-co-auth-cancel {
  height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid #d5e2da;
  background: #ffffff;
  color: #355243;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.stl-co-auth-cancel:hover {
  background: #eef4f0;
}

.dm-wa-cta {
  width: 100%;
  min-height: 46px;
  height: 46px;
  font-size: 0.9rem;
  margin-top: 2px;
}

.design-btn-details {
  height: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  border: 1.5px solid rgba(0, 135, 38, 0.24);
  background: #f4faf6;
  color: #164428;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.design-btn-details:hover {
  background: #e6f6ec;
  border-color: var(--store-pill-active, #009e2e);
}

/* ── Modal de Detalles del Diseño ── */
.design-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.design-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.design-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 15, 0.68);
  backdrop-filter: blur(6px);
}

.design-modal-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  z-index: 2;
  opacity: 0;
  transform: scale(0.94) translateY(14px);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
}

.design-modal.open .design-modal-dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.design-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

.design-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #dbe5df;
  background: #ffffff;
  color: #11281d;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
}

.design-modal-close:hover {
  background: #f0f7f2;
}

.design-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.dm-main-img-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  overflow: hidden;
  background: #eef4f0;
  border: 1px solid #e2ece6;
  cursor: zoom-in;
}

.dm-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(17, 40, 29, 0.72);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.dm-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(17, 40, 29, 0.72);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(6px);
  transition: background 0.16s ease, transform 0.16s ease;
}

.dm-nav-btn[hidden] {
  display: none !important;
}

.dm-nav-btn:hover {
  background: #008726;
  transform: translateY(-50%) scale(1.06);
}

.dm-nav-prev {
  left: 10px;
}

.dm-nav-next {
  right: 10px;
}

@media (min-width: 821px) {
  .design-modal-dialog {
    width: min(1160px, calc(100vw - 48px));
    height: min(760px, calc(100vh - 56px));
    border-radius: 28px;
  }

  .design-modal-close {
    top: 22px;
    right: 24px;
    width: 38px;
    height: 38px;
  }

  .design-modal-scroll {
    display: contents;
  }

  .design-modal-grid {
    display: grid;
    grid-template-columns: 47% 53%;
    gap: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }

  .dm-gallery-col {
    height: 100%;
    min-height: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 135, 38, 0.06), transparent 70%), #f2f7f4;
    border-right: 1px solid #e5ece8;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-sizing: border-box;
  }

  .dm-main-img-wrap {
    width: 100%;
    max-height: 470px;
  }

  .dm-thumbs-row {
    justify-content: center;
    margin-top: 2px;
  }

  .dm-info-col {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
  }

  .dm-info-header {
    flex-shrink: 0;
    padding: 24px 68px 16px 28px;
    border-bottom: 1px solid #edf2ef;
    background: linear-gradient(180deg, #fafdfb 0%, #ffffff 100%);
  }

  .dm-info-header .dm-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: #0f2419;
    margin: 10px 0 12px;
    padding-right: 0;
  }

  .dm-info-header .dm-specs-chips {
    margin-bottom: 0;
  }

  .dm-info-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .dm-sticky-footer {
    box-shadow: none;
    padding: 16px 26px 20px;
    border-top: 1px solid #edf2ef;
  }
}

.dm-thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dm-thumb-btn {
  width: 62px;
  height: 48px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #eef4f0;
  cursor: pointer;
  opacity: 0.72;
  transition: all 0.16s ease;
}

.dm-thumb-btn.active,
.dm-thumb-btn:hover {
  opacity: 1;
  border-color: var(--store-pill-active, #009e2e);
}

.dm-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dm-author-pill {
  align-self: flex-start;
  background: #f0f7f2;
  color: var(--store-primary-green, #008726);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 9999px;
}

.dm-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: #11281d;
  line-height: 1.25;
  padding-right: 28px;
}

.dm-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-profiles-section h3,
.dm-desc-section h3 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #243b2f;
}

.dm-profiles-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dm-profile-btn {
  width: 100%;
  border: 1.5px solid #dbe5df;
  background: #f9fbfa;
  border-radius: 14px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #11281d;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.16s ease;
}

.dm-profile-name {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.dm-profile-metrics {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 12px;
  border-left: 1px solid #dce6e0;
  white-space: nowrap;
  font-size: 0.77rem;
  font-weight: 700;
  color: #243b2f;
}

.dm-profile-metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dm-profile-btn.active {
  border-color: var(--store-pill-active, #009e2e);
  background: #eef8f1;
  color: var(--store-primary-green, #008726);
}

.dm-profile-btn.active .dm-profile-metrics {
  border-left-color: rgba(0, 135, 38, 0.25);
  color: var(--store-primary-green, #008726);
}

/* ── Carrusel Lightbox Fullscreen ── */
.dm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(8, 16, 11, 0.94);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dm-lightbox.open {
  display: flex;
}

.dm-lb-stage {
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-lb-stage img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.dm-lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.dm-lb-counter {
  position: absolute;
  top: 22px;
  left: 20px;
  color: #e2ece6;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 9999px;
}

.dm-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dm-lb-prev {
  left: 14px;
}

.dm-lb-next {
  right: 14px;
}

.dm-desc-text {
  margin: 0;
  font-size: 0.92rem;
  color: #3d5447;
  line-height: 1.65;
}

.dm-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 0 4px;
}

.dm-price-val {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0e1e15;
  line-height: 1;
}

.dm-price-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #5b7265;
}

.dm-stl-specs {
  background: #fafcfb;
  border: 1px solid #e5ece8;
  border-radius: 14px;
  overflow: hidden;
}

.dm-stl-specs-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #f2f7f4;
  border-bottom: 1px solid #e5ece8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #466353;
}

.dm-stl-spec-row {
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf2ef;
  font-size: 0.83rem;
}

.dm-stl-spec-row:last-child {
  border-bottom: none;
}

.dm-stl-spec-row span {
  color: #6b7280;
  font-weight: 600;
}

.dm-stl-spec-row strong {
  color: #11281d;
  font-weight: 700;
}

.dm-notice {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.78rem;
  line-height: 1.45;
}

.dm-drag-bar {
  display: none;
}

.dm-close-back {
  display: none;
}

@media (max-width: 780px) {
  .design-modal {
    align-items: flex-end;
    padding: 0;
  }

  .design-modal-dialog {
    width: 100%;
    max-width: 520px;
    height: 90vh;
    height: 90dvh;
    max-height: 90dvh;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28);
    padding: 0;
    box-sizing: border-box;
    opacity: 1;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .design-modal.open .design-modal-dialog {
    transform: translate3d(0, 0, 0);
  }

  .design-modal-scroll {
    padding: 4px 16px 0;
    width: 100%;
    box-sizing: border-box;
  }

  @keyframes dmSheetUp {
    from {
      opacity: 0;
      transform: translateY(48px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .dm-drag-bar {
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
    flex-shrink: 0;
  }

  .dm-drag-pill {
    width: 40px;
    height: 4px;
    border-radius: 9999px;
    background: #d1d5db;
  }

  .design-modal-close {
    top: 14px;
    left: 14px;
    right: auto;
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }

  .dm-close-x {
    display: none;
  }

  .dm-close-back {
    display: block;
  }

  .design-modal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .dm-gallery-col,
  .dm-info-col {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .dm-main-img-wrap {
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .dm-title {
    font-size: 1.18rem;
    padding-right: 0;
  }

  .dm-wa-cta {
    position: static;
    box-shadow: 0 6px 18px rgba(0, 158, 46, 0.28);
  }

  .dm-sticky-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 16px -16px 0;
    padding: 12px 16px max(16px, env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    z-index: 20;
  }
}

.dm-sticky-footer {
  flex-shrink: 0;
  background: #ffffff;
  border-top: 1px solid #edf2ef;
  box-shadow: 0 -8px 24px rgba(10, 26, 17, 0.06);
  padding: 12px 22px max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.design-btn-cart {
  height: 38px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #16231c;
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.16s ease;
}

.design-btn-cart:hover {
  background: #1f3529;
  transform: translateY(-1px);
}

.dm-sticky-footer .dm-cart-cta {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  flex: 0 0 48px;
}

.dm-sticky-footer .dm-calc-cta {
  width: auto !important;
  flex: 0 1 180px;
  min-width: 150px;
  height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 0.88rem;
  background: #effaf2;
  color: #164428;
  border: 1.5px solid rgba(0, 158, 46, 0.35);
  gap: 6px;
}

.dm-sticky-footer .dm-calc-cta:hover {
  background: #dcf5e3;
}

.dm-sticky-footer .dm-wa-cta {
  flex: 1 1 220px;
  min-width: 0;
  width: auto;
  height: 48px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 0;
}

@media (max-width: 600px) {
  .dm-sticky-footer {
    justify-content: stretch;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .dm-sticky-footer .dm-calc-cta {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .dm-sticky-footer .dm-wa-cta {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
  }

  .dm-sticky-footer .dm-cart-cta {
    order: 2;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    padding: 0;
  }
}

.design-btn-calc {
  width: 100%;
  height: 42px;
  border-radius: 9999px;
  background: var(--store-pill-active, #009e2e);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.18s ease;
}

.design-btn-calc:hover {
  background: var(--store-primary-green, #008726);
}

.design-btn-link {
  width: 100%;
  height: 36px;
  border-radius: 9999px;
  background: #f4faf6;
  color: #164428;
  border: 1px solid rgba(0, 135, 38, 0.18);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.design-btn-link:hover {
  background: #e6f6ec;
}

.designs-empty {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: #3c5447;
  box-shadow: var(--store-card-shadow);
}

.designs-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.designs-load-more-btn {
  height: 46px;
  padding: 0 28px;
  border-radius: 9999px;
  border: none;
  background: var(--store-pill-active, #009e2e);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 158, 46, 0.25);
  transition: all 0.18s ease;
}

.designs-load-more-btn:hover:not(:disabled) {
  background: var(--store-primary-green, #008726);
  transform: translateY(-1px);
}

.designs-load-more-btn:disabled {
  opacity: 0.85;
  cursor: wait;
}

.designs-btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: kreaBtnSpin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes kreaBtnSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Skeletons */
.design-skeleton-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  padding-bottom: 14px;
  box-shadow: var(--store-card-shadow);
  border: 1px solid rgba(22, 54, 36, 0.06);
}

.design-skeleton-card .store-skeleton {
  background: linear-gradient(90deg, #e5eee8 0%, #f4f9f6 45%, #e5eee8 90%);
  background-size: 600px 100%;
  animation: store-shimmer 1.3s ease-in-out infinite;
}

@media (max-width: 960px) {
  .designs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .krea-designs-page {
    padding: 6px 0 42px;
  }

  .designs-hero {
    padding: 14px 14px 12px;
    border-radius: 18px;
    margin-bottom: 10px;
  }

  .designs-badge,
  .designs-hero-badge,
  .designs-disclaimer {
    display: none !important;
  }

  .designs-hero h1 {
    font-size: 1.24rem;
    margin: 0 0 4px;
  }

  .designs-sub {
    font-size: 0.76rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .designs-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 4px;
    gap: 4px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .designs-mode-tab {
    min-width: 0;
    justify-content: center;
    text-align: center;
    padding: 9px 10px;
    font-size: 0.78rem;
    border-radius: 10px;
    line-height: 1.2;
    gap: 6px;
    white-space: nowrap;
  }

  .designs-mode-tab svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .designs-topics-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .designs-topics-row::-webkit-scrollbar {
    display: none;
  }

  .designs-topic-pill {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.74rem;
    padding: 6px 12px;
  }

  .designs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .design-card {
    border-radius: 18px;
  }

  .design-thumb {
    aspect-ratio: 4 / 3;
  }

  .design-fav-btn {
    width: 28px;
    height: 28px;
    top: 7px;
    left: 7px;
  }

  .design-fav-btn svg {
    width: 13px;
    height: 13px;
  }

  .design-photos-badge {
    top: 7px;
    right: 7px;
    font-size: 0.64rem;
    padding: 3px 7px;
  }

  .design-overlay-specs {
    left: 7px;
    right: 7px;
    bottom: 7px;
    gap: 4px;
  }

  .design-overlay-chip {
    font-size: 0.64rem;
    padding: 3px 7px;
    gap: 3px;
  }

  .design-overlay-chip svg {
    width: 11px;
    height: 11px;
  }

  .design-body {
    padding: 10px 10px 12px;
    gap: 6px;
  }

  .design-title {
    font-size: 0.82rem;
    line-height: 1.28;
  }

  .design-author {
    font-size: 0.7rem;
    margin: -2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .design-actions {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
  }

  .design-btn-cart.design-btn-cart-icon,
  .design-btn-cart-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .design-btn-calc,
  .design-btn-wa {
    min-height: 36px;
    height: 36px;
    font-size: 0.7rem;
    padding: 0 8px;
    gap: 4px;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .design-btn-calc span,
  .design-btn-wa span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .design-btn-wa svg {
    width: 15px;
    height: 15px;
  }

  .design-btn-details {
    height: 32px;
    font-size: 0.74rem;
    padding: 0 10px;
    width: 100%;
  }

  .design-btn-cart {
    height: 34px;
    font-size: 0.74rem;
    padding: 0 10px;
    width: 100%;
  }

  .designs-search-btn {
    padding: 0 16px;
  }
}

/* ═══ UNIFIED MINIMALIST 2026 DESIGN CARDS (MATCH PRODUCT CARDS) ═══ */
.design-card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.03);
}

.design-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #f4f5f6;
}

.design-body {
  padding: 10px 2px 2px;
  gap: 6px;
}

.design-title {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.design-author {
  color: #6b7280;
  font-size: 0.74rem;
  margin: 0;
}

.design-card-divider {
  display: none;
}

.design-actions {
  padding-top: 6px;
  gap: 7px;
}

.design-btn-calc,
.design-btn-wa {
  height: 38px;
  min-height: 38px;
  border-radius: 12px;
  font-size: 0.8rem;
  gap: 6px;
}

.design-btn-cart.design-btn-cart-icon,
.design-btn-cart-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #11281d;
}

@media (max-width: 600px) {
  .design-card {
    padding: 9px;
    border-radius: 16px;
  }

  .design-thumb {
    border-radius: 12px;
  }

  .design-body {
    padding: 8px 2px 2px;
    gap: 4px;
  }

  .design-title {
    font-size: 0.8rem;
  }

  .design-author {
    font-size: 0.68rem;
  }

  .design-btn-calc,
  .design-btn-wa {
    height: 36px;
    min-height: 36px;
    border-radius: 10px;
    font-size: 0.76rem;
    gap: 5px;
  }

  .design-btn-cart.design-btn-cart-icon,
  .design-btn-cart-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
  }
}