/* ===== DRAWINGS SHOP STYLES ===== */

/* Hero */
.drawings-hero {
  background: hsl(163, 35%, 36%);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  color: #fff;
}

.drawings-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.drawings-hero p {
  opacity: .8;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Toolbar */
.drawings-toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.drawings-search-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.drawings-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.drawings-search {
  width: 100%;
  padding: .65rem .75rem .65rem 2.5rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .92rem;
  transition: border-color .2s;
  background: #f8fafc;
}

.drawings-search:focus {
  outline: none;
  border-color: #3C7C6A;
  background: #fff;
}

.drawings-filter-select {
  padding: .65rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .88rem;
  color: #334155;
  background: #f8fafc;
  cursor: pointer;
  min-width: 160px;
}

.drawings-filter-select:focus {
  outline: none;
  border-color: #3C7C6A;
}

/* Results info */
.drawings-results-info {
  font-size: .9rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.drawings-results-info strong {
  color: #3C7C6A;
}

/* Grid */
.drawings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Card */
.drawing-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  border: 1.5px solid #f1f5f9;
}

.drawing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(15, 52, 96, .12);
}

/* Card thumbnail */
.drawing-card-thumb {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawing-card-thumb .thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: #94a3b8;
}

.drawing-card-thumb .thumb-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: .5;
}

.drawing-card-thumb .thumb-placeholder span {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Blurred overlay for locked content */
.drawing-card-thumb .lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 52, 96, .35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

.drawing-card:hover .lock-overlay {
  opacity: 1;
}

.lock-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.lock-overlay-content svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

/* Hover buttons */
.drawing-card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .75rem;
  display: flex;
  gap: .5rem;
  transform: translateY(100%);
  transition: transform .3s ease;
  background: linear-gradient(transparent, rgba(0, 0, 0, .5));
}

.drawing-card:hover .drawing-card-actions {
  transform: translateY(0);
}

.btn-add-cart,
.btn-view-detail {
  flex: 1;
  padding: .55rem .75rem;
  border: none;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  transition: background .2s, transform .15s;
}

.btn-add-cart {
  background: #e8a838;
  color: #1a1a2e;
}

.btn-add-cart:hover {
  background: #f0b84d;
  transform: scale(1.03);
}

.btn-add-cart svg,
.btn-view-detail svg {
  width: 16px;
  height: 16px;
}

.btn-view-detail {
  background: rgba(255, 255, 255, .95);
  color: #1a1a2e;
}

.btn-view-detail:hover {
  background: #fff;
  transform: scale(1.03);
}

/* Card body */
.drawing-card-body {
  padding: 1rem 1.15rem 1.25rem;
}

.drawing-card-cat {
  display: inline-block;
  padding: .2rem .6rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 6px;
  margin-bottom: .6rem;
}

.cat-res {
  background: #dbeafe;
  color: #1e40af;
}

.cat-com {
  background: #fce7f3;
  color: #9d174d;
}

.drawing-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .35rem;
  line-height: 1.3;
}

.drawing-card-desc {
  font-size: .84rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drawing-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawing-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F3E33;
}

/* Empty state */
.drawings-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #94a3b8;
}

.drawings-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: .4;
}

.drawings-empty h3 {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: .5rem;
}

/* ====== DETAIL PAGE ====== */
.drawing-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.drawing-detail-main {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  overflow: hidden;
  border: 1.5px solid #f1f5f9;
}

.drawing-detail-preview {
  height: 320px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.drawing-detail-preview .lock-banner {
  position: absolute;
  inset: 0;
  background: rgba(15, 52, 96, .4);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: #fff;
}

.lock-banner svg {
  width: 48px;
  height: 48px;
  opacity: .9;
}

.lock-banner p {
  font-size: 1rem;
  font-weight: 600;
  opacity: .9;
}

.lock-banner span {
  font-size: .85rem;
  opacity: .7;
}

.drawing-detail-info {
  padding: 2rem;
}

.drawing-detail-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .75rem;
}

.detail-meta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.detail-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
}

.detail-meta-tag svg {
  width: 16px;
  height: 16px;
}

.detail-meta-cat {
  background: #dbeafe;
  color: #1e40af;
}

.detail-meta-type {
  background: #f1f5f9;
  color: #475569;
}

.detail-meta-price {
  background: linear-gradient(135deg, #0F3E33, #1a5276);
  color: #fff;
  font-size: .95rem;
  padding: .4rem 1rem;
  border-radius: 8px;
}

.drawing-detail-desc {
  font-size: .95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.drawing-detail-desc h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .5rem;
}

/* Detail page add to cart */
.detail-add-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  background: linear-gradient(135deg, #e8a838, #f0b84d);
  color: #1a1a2e;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(232, 168, 56, .3);
}

.detail-add-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 168, 56, .4);
}

.detail-add-cart-btn svg {
  width: 20px;
  height: 20px;
}

.detail-in-cart-msg {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: 1rem;
  font-size: .85rem;
  color: #16a34a;
  font-weight: 600;
}

.detail-in-cart-msg svg {
  width: 18px;
  height: 18px;
}

/* Sidebar */
.drawing-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  border: 1.5px solid #f1f5f9;
  padding: 1.25rem;
}

.sidebar-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1.5px solid #f1f5f9;
}

/* Sidebar related drawing items */
.sidebar-drawing-item {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}

.sidebar-drawing-item:last-child {
  border-bottom: none;
}

.sidebar-drawing-item:hover {
  background: #f8fafc;
  border-radius: 8px;
  padding-left: .5rem;
  padding-right: .5rem;
}

.sidebar-drawing-thumb {
  width: 60px;
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-drawing-thumb svg {
  width: 20px;
  height: 20px;
  color: #94a3b8;
}

.sidebar-drawing-info {
  flex: 1;
  min-width: 0;
}

.sidebar-drawing-info h4 {
  font-size: .85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-drawing-info span {
  font-size: .75rem;
  color: #64748b;
}

.sidebar-drawing-price {
  font-size: .85rem;
  font-weight: 700;
  color: #0F3E33;
  white-space: nowrap;
  align-self: center;
}

/* Login prompt sidebar */
.sidebar-login-prompt {
  text-align: center;
  padding: .5rem 0;
}

.sidebar-login-prompt p {
  font-size: .88rem;
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.sidebar-login-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.5rem;
  background: #0F3E33;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}

.sidebar-login-btn:hover {
  background: #1a5276;
}

/* Toast notification */
.drawing-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  transform: translateY(120%);
  transition: transform .35s ease;
  z-index: 9999;
}

.drawing-toast.show {
  transform: translateY(0);
}

.drawing-toast svg {
  width: 20px;
  height: 20px;
  color: #4ade80;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .drawing-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .drawings-toolbar {
    flex-direction: column;
  }

  .drawings-grid {
    grid-template-columns: 1fr;
  }

  .drawings-hero h1 {
    font-size: 1.7rem;
  }

  .drawing-detail-preview {
    height: 220px;
  }

  .drawing-detail-info {
    padding: 1.25rem;
  }

  .drawing-detail-info h1 {
    font-size: 1.35rem;
  }
}

.cart-page {
  padding: 2.5rem 0 4rem;
}

.cart-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.cart-breadcrumb a {
  color: #0F3E33;
  text-decoration: none;
  font-weight: 500;
}

.cart-breadcrumb a:hover {
  text-decoration: underline;
}

.cart-breadcrumb svg {
  width: 14px;
  height: 14px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
}

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

/* Cart items */
.cart-items-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  border: 1.5px solid #f1f5f9;
  overflow: hidden;
}

.cart-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1.5px solid #f1f5f9;
}

.cart-items-header h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
}

.cart-items-count {
  background: #0F3E33;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
}

.cart-clear-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: .35rem .75rem;
  border-radius: 6px;
  transition: background .2s;
}

.cart-clear-btn:hover {
  background: #fef2f2;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f8fafc;
  transition: background .2s;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item:hover {
  background: #fafbfc;
}

.cart-item-thumb {
  width: 80px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-thumb svg {
  width: 28px;
  height: 28px;
  color: #94a3b8;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h4 {
  font-size: .95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .2rem;
}

.cart-item-info p {
  font-size: .78rem;
  color: #64748b;
  margin-bottom: .3rem;
}

.cart-item-tags {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.cart-item-tag {
  font-size: .68rem;
  padding: .15rem .45rem;
  border-radius: 4px;
  font-weight: 600;
}

.tag-cat {
  background: #dbeafe;
  color: #1e40af;
}

.tag-plan {
  background: #f1f5f9;
  color: #475569;
}

.tag-file {
  background: #fef3c7;
  color: #92400e;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F3E33;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: .25rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.cart-remove-btn:hover {
  color: #ef4444;
  background: #fef2f2;
}

.cart-remove-btn svg {
  width: 18px;
  height: 18px;
}

/* Empty cart */
.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.cart-empty h3 {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: .5rem;
}

.cart-empty p {
  font-size: .9rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.cart-empty a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  background: #0F3E33;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s;
}

.cart-empty a:hover {
  background: #1a5276;
}

/* Summary sidebar */
.cart-summary {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  border: 1.5px solid #f1f5f9;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 6rem;
}

.cart-summary h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1.5px solid #f1f5f9;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  font-size: .9rem;
}

.summary-row span:first-child {
  color: #64748b;
}

.summary-row span:last-child {
  color: #1e293b;
  font-weight: 600;
}

.summary-divider {
  height: 1.5px;
  background: #f1f5f9;
  margin: .75rem 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
}

.summary-total span:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.summary-total span:last-child {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F3E33;
}

.summary-note {
  font-size: .78rem;
  color: #94a3b8;
  margin: .75rem 0 1.25rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: .4rem;
}

.summary-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.checkout-btn {
  width: 100%;
  padding: .9rem;
  background: linear-gradient(135deg, #e8a838, #f0b84d);
  color: #1a1a2e;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(232, 168, 56, .3);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 168, 56, .4);
}

.checkout-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.checkout-btn svg {
  width: 20px;
  height: 20px;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: .85rem;
  color: #0F3E33;
  text-decoration: none;
  font-weight: 500;
}

.continue-shopping:hover {
  text-decoration: underline;
}

/* Secure badge */
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: .75rem;
  color: #94a3b8;
}

.secure-badge svg {
  width: 14px;
  height: 14px;
}

.checkout-page {
  padding: 2.5rem 0 4rem;
}

/* Breadcrumb */
.checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.checkout-breadcrumb a {
  color: #0F3E33;
  text-decoration: none;
  font-weight: 500;
}

.checkout-breadcrumb a:hover {
  text-decoration: underline;
}

.checkout-breadcrumb svg {
  width: 14px;
  height: 14px;
}

/* Steps indicator */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  border: 2px solid #cbd5e1;
  color: #94a3b8;
  background: #fff;
  transition: all .3s;
}

.step-circle.active {
  border-color: #0F3E33;
  background: #0F3E33;
  color: #fff;
}

.step-circle.done {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.step-label {
  font-size: .82rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color .3s;
}

.step-label.active {
  color: #1e293b;
}

.step-label.done {
  color: #16a34a;
}

.step-line {
  width: 60px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 .75rem;
  transition: background .3s;
}

.step-line.done {
  background: #16a34a;
}

/* Layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
}

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

/* Form panels */
.checkout-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  border: 1.5px solid #f1f5f9;
  padding: 2rem;
  display: none;
}

.checkout-panel.active {
  display: block;
  animation: checkoutFade .35s ease;
}

@keyframes checkoutFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.checkout-panel h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: .35rem;
}

.checkout-panel .panel-sub {
  font-size: .88rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* Form fields */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: #475569;
}

.form-group label .required {
  color: #ef4444;
}

.form-group input,
.form-group select {
  padding: .7rem .85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color .2s, background .2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0F3E33;
  background: #fff;
}

.form-group input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-error {
  font-size: .75rem;
  color: #ef4444;
  min-height: .9rem;
}

/* Card input styling */
.card-input-wrap {
  position: relative;
}

.card-input-wrap svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #94a3b8;
}

.card-brands {
  display: flex;
  gap: .5rem;
  margin-top: .25rem;
}

.card-brands img {
  height: 20px;
  opacity: .4;
}

/* Buttons */
.checkout-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
}

.btn-back {
  padding: .75rem 1.5rem;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.btn-back:hover {
  background: #e2e8f0;
}

.btn-next {
  flex: 1;
  padding: .75rem 1.5rem;
  background: #0F3E33;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: background .2s, transform .15s;
}

.btn-next:hover {
  background: #1a5276;
  transform: translateY(-1px);
}

.btn-pay {
  flex: 1;
  padding: .85rem 1.5rem;
  background: linear-gradient(135deg, #e8a838, #f0b84d);
  color: #1a1a2e;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(232, 168, 56, .3);
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 168, 56, .4);
}

.btn-pay svg {
  width: 20px;
  height: 20px;
}

/* Order summary sidebar */
.order-summary {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  border: 1.5px solid #f1f5f9;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 6rem;
}

.order-summary h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1.5px solid #f1f5f9;
}

.order-item {
  display: flex;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid #f8fafc;
}

.order-item:last-of-type {
  border-bottom: none;
}

.order-item-thumb {
  width: 44px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-item-thumb svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-info h4 {
  font-size: .78rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-item-info span {
  font-size: .7rem;
  color: #64748b;
}

.order-item-price {
  font-size: .82rem;
  font-weight: 700;
  color: #0F3E33;
  white-space: nowrap;
  align-self: center;
}

.order-divider {
  height: 1.5px;
  background: #f1f5f9;
  margin: .75rem 0;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  font-size: .85rem;
}

.order-row span:first-child {
  color: #64748b;
}

.order-row span:last-child {
  color: #1e293b;
  font-weight: 600;
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding: .75rem 0;
}

.order-total span:first-child {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.order-total span:last-child {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F3E33;
}

.order-edit {
  display: block;
  text-align: center;
  margin-top: .75rem;
  font-size: .82rem;
  color: #0F3E33;
  text-decoration: none;
  font-weight: 500;
}

.order-edit:hover {
  text-decoration: underline;
}

/* Success */
.checkout-success {
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: successPop .5s ease;
}

@keyframes successPop {
  0% {
    transform: scale(0);
  }

  60% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.checkout-success h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: .5rem;
}

.checkout-success p {
  font-size: .95rem;
  color: #64748b;
  max-width: 460px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.success-details {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1.25rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.success-details div {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  font-size: .88rem;
}

.success-details div span:first-child {
  color: #64748b;
}

.success-details div span:last-child {
  color: #1e293b;
  font-weight: 600;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.success-actions a {
  padding: .7rem 1.5rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.success-actions .btn-primary-s {
  background: #0F3E33;
  color: #fff;
}

.success-actions .btn-primary-s:hover {
  background: #1a5276;
}

.success-actions .btn-outline-s {
  background: #f1f5f9;
  color: #475569;
}

.success-actions .btn-outline-s:hover {
  background: #e2e8f0;
}


/* ===== DRAWING PREVIEW (FINAL CLEAN VERSION) ===== */

.drawing-detail-preview {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 14px;
}

/* wrapper */
.preview-wrapper {
  position: absolute;
  inset: 0;
  /* 🔥 match full parent */
  overflow: hidden;
}

/* image */
.preview-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.1);
}


.lock-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 🔥 THIS WAS MISSING */

  background: rgba(65, 65, 65, 0);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: #000000;
  text-align: center;
}

/* Drawing Card Meta - Vertical Stack Layout */
.drawing-card-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.drawing-card-price-container {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.drawing-card-price-original {
  font-size: 0.95rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.drawing-card-price-sale {
  font-size: 1.129rem;
  font-weight: 700;
  color: #0f3e33;
  line-height: 1;
}

.drawing-card-discount-badge {
  background: #e0892a;
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.drawing-card-type {
  background: #f0f7f5;
  border: 1px solid #b8dfd0;
  padding: 8px 16px;
  width: 100%;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f3e33;
  display: inline-block;
  align-self: flex-start;
  text-align: center;
}