/* ============================================================
   VORTEX ART — Main Stylesheet
   Palette: #fafafa bg / #1a1a1a text / #8b6914 accent (gold-brown)
   ============================================================ */

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: #8b6914; text-decoration: none; transition: color 0.2s; }
a:hover { color: #5e4610; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: 'Georgia', serif;
  color: #1a1a1a;
  line-height: 1.2;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 3px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  line-height: 1.3;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: #8b6914;
  color: #fff;
  border-color: #8b6914;
}
.btn-primary:hover { background: #5e4610; border-color: #5e4610; color: #fff; box-shadow: 0 4px 12px rgba(139,105,20,0.3); }

.btn-outline {
  background: transparent;
  color: #8b6914;
  border-color: #8b6914;
}
.btn-outline:hover { background: #8b6914; color: #fff; box-shadow: 0 4px 12px rgba(139,105,20,0.2); }

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-large { padding: 0.85rem 2rem; font-size: 1.05rem; }

.btn-danger { color: #c0392b; border-color: #c0392b; }
.btn-danger:hover { background: #c0392b; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: #1a1a1a;
  color: #fafafa;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f0c060;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.site-logo { transition: color 0.25s; }
.site-logo:hover { color: #fff; }

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  color: #ccc;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: #f0c060; border-bottom-color: #f0c060; }
.main-nav a { transition: color 0.25s, border-bottom-color 0.25s; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.cart-link {
  position: relative;
  color: #ccc;
  font-size: 1.4rem;
  line-height: 1;
}
.cart-link { transition: color 0.25s, transform 0.2s; }
.cart-link:hover { color: #f0c060; transform: scale(1.1); }

.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: #8b6914;
  color: #fff;
  font-size: 0.65rem;
  font-family: sans-serif;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Messages ---------- */
.messages-container { padding: 0.5rem 1.5rem; }
.alert {
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-family: sans-serif;
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #1b5e20;
  animation: slideDown 0.4s ease-out;
}
.alert-error { background: #fce4ec; border-color: #e91e63; color: #880e4f; }
.alert-warning { background: #fff8e1; border-color: #ffc107; color: #6d4c00; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2414 50%, #1a1a1a 100%);
  color: #fafafa;
  padding: 6rem 0;
  text-align: center;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #f0c060;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #ccc;
  max-width: 540px;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: #f0ebe2; }

.section-title {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.section-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Paintings Grid ---------- */
.paintings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.painting-card {
  background: #fff;
  border: 1px solid #e0d8cc;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.painting-card:hover {
  box-shadow: 0 8px 24px rgba(139,105,20,0.15);
  transform: translateY(-3px);
}

.card-image-link { display: block; overflow: hidden; background: #e8e0d0; }
.card-image { width: 100%; height: 240px; object-fit: cover; transition: transform 0.4s; }
.painting-card:hover .card-image { transform: scale(1.04); }

.card-image-placeholder {
  width: 100%; height: 240px;
  background: linear-gradient(135deg, #d4c4a0, #e8dcc8);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: #8b6914;
  font-family: serif;
}

.card-body {
  padding: 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title { font-size: 1.05rem; margin-bottom: 0.3rem; }
.card-title a { color: #1a1a1a; }
.card-title a:hover { color: #8b6914; }

.card-meta {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.15rem;
  font-family: sans-serif;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f0ebe2;
}

.price {
  font-size: 1.15rem;
  font-weight: bold;
  color: #8b6914;
}

/* ---------- Categories Row ---------- */
.categories-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: #fff;
  border: 1px solid #e0d8cc;
  border-radius: 4px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  color: #1a1a1a;
  display: block;
}
.category-card:hover {
  box-shadow: 0 8px 24px rgba(139,105,20,0.18);
  transform: translateY(-4px);
  color: #1a1a1a;
}
.category-icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.category-name { font-size: 1.15rem; color: #8b6914; margin-bottom: 0.4rem; }
.category-desc { font-size: 0.85rem; color: #666; font-family: sans-serif; }

/* ---------- Studio Blurb ---------- */
.studio-blurb { max-width: 680px; text-align: center; }
.studio-blurb h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.studio-blurb p { color: #444; }
.studio-blurb .btn { margin-top: 1rem; }

/* ---------- Page Header ---------- */
.page-header {
  background: #1a1a1a;
  color: #fafafa;
  padding: 3rem 0;
}
.page-header h1 { color: #f0c060; font-size: 2rem; animation: fadeIn 0.6s ease-out; }
.page-header-desc { color: #aaa; margin-top: 0.5rem; font-size: 1rem; animation: fadeIn 0.8s ease-out; }

/* ---------- Catalog ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  align-items: start;
}

.catalog-sidebar { position: sticky; top: 80px; }
.sidebar-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  font-family: sans-serif;
  margin-bottom: 0.75rem;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar-link {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  color: #444;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, padding-left 0.2s;
}
.sidebar-link:hover { background: #f0ebe2; color: #1a1a1a; padding-left: 0.9rem; }
.sidebar-link.active { border-left-color: #8b6914; color: #8b6914; background: #fdf6e8; }

.result-count {
  font-size: 0.85rem;
  color: #888;
  font-family: sans-serif;
  margin-bottom: 1.25rem;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  font-family: sans-serif;
  font-size: 0.9rem;
}
.page-link { color: #8b6914; }
.page-info { color: #888; }

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.empty-state p { color: #666; margin-bottom: 1.5rem; }

/* ---------- Painting Detail ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  align-items: start;
}

.main-image {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.image-placeholder-large {
  width: 100%;
  padding-bottom: 100%;
  position: relative;
  background: linear-gradient(135deg, #d4c4a0, #e8dcc8);
  border-radius: 4px;
}
.image-placeholder-large span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #8b6914;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  border: 2px solid #e0d8cc;
  cursor: pointer;
  transition: border-color 0.2s;
}
.thumb img:hover { border-color: #8b6914; }
.thumb-caption { font-size: 0.75rem; color: #888; margin-top: 0.2rem; }

.breadcrumb {
  font-size: 0.82rem;
  color: #999;
  font-family: sans-serif;
  margin-bottom: 1rem;
}
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #8b6914; }

.detail-title { font-size: 2rem; margin-bottom: 1.25rem; }

.detail-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.detail-meta-table th, .detail-meta-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0ebe2;
  text-align: left;
}
.detail-meta-table th {
  width: 30%;
  color: #888;
  font-family: sans-serif;
  font-weight: normal;
}

.detail-description { margin-bottom: 1.5rem; color: #333; }

.detail-purchase {
  background: #f0ebe2;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.detail-price { font-size: 2rem; color: #8b6914; font-weight: bold; margin-bottom: 1rem; }

.purchase-note {
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.75rem;
  font-family: sans-serif;
}

/* Custom Order (Sold items) */
.detail-sold { border: 2px solid #d4c4a0; }
.sold-badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.9rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.detail-custom-order {
  background: #f9f6f0;
  border: 1px dashed #c9b882;
  border-radius: 4px;
  padding: 1.25rem;
  margin-top: 1rem;
  text-align: center;
}
.custom-order-intro {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.custom-order-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d4c4a0;
  color: #8b6914;
}
.custom-order-form .form-group { margin-bottom: 1rem; }
.custom-order-form .form-group label {
  display: block;
  font-size: 0.82rem;
  font-family: sans-serif;
  color: #555;
  margin-bottom: 0.3rem;
}
.custom-order-form select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}


/* ---------- Custom Order Page ---------- */
.custom-order-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  padding: 2.5rem 0 3rem;
  align-items: start;
}
.custom-order-preview { position: sticky; top: 80px; }
.custom-order-image { width: 100%; border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); margin-bottom: 1rem; }
.custom-order-painting-title { font-size: 1.4rem; margin-bottom: 0.25rem; }
.custom-order-desc { font-size: 0.9rem; color: #555; margin-top: 0.5rem; }

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.form-fieldset legend {
  font-size: 1.05rem;
  font-weight: bold;
  color: #8b6914;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e0d8cc;
  width: 100%;
  font-family: 'Georgia', serif;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.custom-order-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .custom-order-layout { grid-template-columns: 1fr; gap: 2rem; }
  .custom-order-preview { position: static; }
  .custom-order-image { max-height: 300px; object-fit: cover; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .custom-order-actions { flex-direction: column; }
}

/* ---------- Reviews ---------- */
.reviews-section { max-width: 800px; }

.reviews-header { margin-bottom: 2rem; text-align: center; }
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.reviews-avg { font-size: 1.1rem; font-weight: bold; color: #1a1a1a; }
.reviews-count { font-size: 0.9rem; color: #888; font-family: sans-serif; }
.reviews-empty { color: #888; font-size: 0.95rem; margin-top: 0.5rem; }

.stars-display { display: flex; gap: 2px; }
.star { color: #d4c4a0; font-size: 1.3rem; line-height: 1; }
.star.filled { color: #f0a500; }

.reviews-list { margin-bottom: 2.5rem; }
.review-card {
  border-bottom: 1px solid #e0d8cc;
  padding: 1.25rem 0;
}
.review-card:last-child { border-bottom: none; }
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.review-stars { display: flex; gap: 1px; }
.review-stars .star { font-size: 1rem; }
.review-date { font-size: 0.78rem; color: #999; font-family: sans-serif; }
.review-text { font-size: 0.95rem; color: #333; margin-bottom: 0.4rem; }
.review-author { font-size: 0.85rem; color: #8b6914; font-style: italic; }

.review-form-wrap {
  background: #f5f1ea;
  border-radius: 6px;
  padding: 2rem;
}
.review-form-wrap h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.form-row-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Star rating input */
.star-rating {
  display: flex;
  gap: 4px;
  cursor: pointer;
  margin-bottom: 0.25rem;
}
.star-btn {
  font-size: 1.8rem;
  color: #d4c4a0;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
  user-select: none;
}
.star-btn:hover { transform: scale(1.15); }
.star-btn.active { color: #f0a500; }

@media (max-width: 640px) {
  .review-form-wrap { padding: 1.25rem; }
  .form-row-review { grid-template-columns: 1fr; }
  .review-top { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .reviews-summary { flex-direction: column; }
}

/* ---------- Related Products ---------- */
.related-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.related-grid .card-image { height: 200px; }
.related-grid .card-image-placeholder { height: 200px; font-size: 3rem; }

/* ---------- Added to Cart ---------- */
.added-cart-layout { padding: 2rem 0 3rem; }

.added-item {
  display: flex;
  gap: 1.5rem;
  background: #f5f1ea;
  border: 1px solid #d4c4a0;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  align-items: center;
}
.added-item-image { flex: 0 0 140px; }
.added-item-image img { border-radius: 4px; width: 140px; height: 140px; object-fit: cover; }
.added-item-image .card-image-placeholder { width: 140px; height: 140px; font-size: 2.5rem; border-radius: 4px; }
.added-item-info { flex: 1; }
.added-item-info h2 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.added-check {
  color: #27ae60;
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-family: sans-serif;
}
.added-item-price { font-size: 1.2rem; color: #8b6914; font-weight: bold; margin: 0.5rem 0; }
.added-item-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.suggestions-section { margin-top: 1rem; }
.suggestions-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0d8cc;
}
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.suggestions-grid .painting-card { font-size: 0.9rem; }
.suggestions-grid .card-image { height: 180px; }
.suggestions-grid .card-image-placeholder { height: 180px; font-size: 3rem; }
.suggestions-grid .card-body { padding: 0.75rem 1rem; }
.suggestions-grid .card-title { font-size: 0.95rem; margin-bottom: 0.2rem; }
.suggestions-grid .card-footer { padding-top: 0.5rem; }
.suggestions-grid .price { font-size: 1rem; }
.suggestions-grid .btn-sm { padding: 0.3rem 0.65rem; font-size: 0.78rem; }
.suggestions-skip { text-align: center; margin-top: 1rem; }

/* ---------- Cart ---------- */
.cart-layout { padding: 2rem 0 3rem; }

.cart-table-wrapper { overflow-x: auto; margin-bottom: 1.5rem; }

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.cart-table th, .cart-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0d8cc;
}
.cart-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  font-family: sans-serif;
  background: #f5f1ea;
}
.cart-total-row td { font-size: 1.1rem; border-top: 2px solid #c9b882; border-bottom: none; }

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d4c4a0;
  border-radius: 4px;
  overflow: hidden;
}
.qty-btn {
  background: #f5f1ea;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.qty-btn:hover { background: #e8dcc8; }
.qty-value {
  min-width: 32px;
  text-align: center;
  font-size: 0.9rem;
  font-family: sans-serif;
  font-weight: bold;
  user-select: none;
}

.btn-remove {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  transition: color 0.2s, transform 0.2s;
}
.btn-remove:hover { color: #922b21; transform: scale(1.2); }

.cart-custom-badge {
  display: inline-block;
  background: #8b6914;
  color: #fff;
  font-family: sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Size option radio cards */
.size-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.size-option {
  display: block;
  cursor: pointer;
}
.size-option input { display: none; }
.size-option-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border: 2px solid #e0d8cc;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.size-option input:checked + .size-option-inner {
  border-color: #8b6914;
  background: #fdf6e8;
  box-shadow: 0 0 0 2px rgba(139,105,20,0.15);
}
.size-option:hover .size-option-inner { border-color: #c9b882; }
.size-label { font-size: 1rem; font-weight: bold; }
.size-price { font-size: 1.05rem; color: #8b6914; font-weight: bold; }

.cart-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.checkout-notice {
  background: #f0ebe2;
  border: 1px solid #d4c4a0;
  border-radius: 4px;
  padding: 2rem;
  max-width: 600px;
}
.checkout-notice h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.checkout-notice p { color: #555; margin-bottom: 1rem; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0 3rem;
  align-items: start;
}

.contact-form { }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-family: sans-serif;
  color: #555;
  margin-bottom: 0.35rem;
}
.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #d4c4a0;
  border-radius: 3px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: #8b6914; box-shadow: 0 0 0 3px rgba(139,105,20,0.15); transform: translateY(-1px); }
.form-input { transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s; }

.field-errors { color: #c0392b; font-size: 0.82rem; font-family: sans-serif; margin-top: 0.3rem; }

.contact-info-col h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.contact-info-col h4 { font-size: 1rem; margin: 1.25rem 0 0.35rem; color: #8b6914; }
.contact-info-col p { font-size: 0.92rem; color: #444; }

/* ---------- About ---------- */
.about-layout { padding: 2.5rem 0 3rem; max-width: 740px; }
.about-layout h2 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.about-tagline { color: #888; margin-bottom: 1.5rem; }
.about-layout h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.about-layout p { color: #333; font-size: 0.97rem; }

.exhibition-list { padding-left: 0; }
.exhibition-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0ebe2;
  font-size: 0.95rem;
  color: #333;
}

.about-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #999;
  padding: 2.5rem 0;
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
}
.footer-brand strong { display: block; color: #f0c060; margin-bottom: 0.2rem; }
.footer-brand p { font-size: 0.85rem; margin: 0; }

.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav a { color: #888; font-size: 0.9rem; transition: color 0.25s; }
.footer-nav a:hover { color: #f0c060; }

.footer-copy { font-size: 0.8rem; font-family: sans-serif; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Added-to-cart animation ---------- */
.added-item { animation: scaleIn 0.4s ease-out; }
.added-check { animation: fadeIn 0.6s ease-out 0.2s both; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .paintings-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
  .card-image { height: 200px; }
  .card-image-placeholder { height: 200px; }
  .suggestions-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
  .related-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .categories-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .main-nav { flex-direction: column; gap: 0; }
  .main-nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #1a1a1a;
    padding: 0 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    display: flex !important;
  }
  .main-nav.open {
    max-height: 300px;
    padding: 1rem 1.5rem;
  }
  .nav-toggle { display: block; }
  .hero { padding: 3rem 0; }
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.5rem; }
  .paintings-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .card-image { height: 180px; }
  .card-image-placeholder { height: 180px; font-size: 3rem; }
  .card-body { padding: 0.75rem 0.9rem; }
  .card-title { font-size: 0.9rem; margin-bottom: 0.2rem; }
  .price { font-size: 0.9rem; }
  .btn { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
  .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.72rem; }
  .btn-large { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

  /* Card footer — prevent overlap */
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 0.5rem;
  }
  .card-footer form { width: 100%; }
  .card-footer .btn-sm { width: 100%; text-align: center; }
  .card-meta { font-size: 0.75rem; }

  /* Page header mobile */
  .page-header { padding: 1.5rem 0; }
  .page-header h1 { font-size: 1.4rem; }
  .page-header-desc { font-size: 0.85rem; }

  /* Detail page mobile */
  .detail-title { font-size: 1.4rem; }
  .detail-price { font-size: 1.4rem; }
  .detail-purchase { padding: 1rem; }
  .detail-purchase .btn-large { width: 100%; text-align: center; }
  .detail-custom-order { padding: 1rem; text-align: center; }
  .detail-custom-order .btn { width: 100%; text-align: center; }
  .detail-meta-table th, .detail-meta-table td { font-size: 0.82rem; padding: 0.4rem 0; }
  .breadcrumb { font-size: 0.75rem; }
  .purchase-note { font-size: 0.75rem; }
  .sold-badge { font-size: 0.7rem; }

  /* Added to cart mobile */
  .added-item { flex-direction: column; text-align: center; padding: 1rem; gap: 0.75rem; }
  .added-item-image { flex: none; }
  .added-item-image img { width: 100px; height: 100px; margin: 0 auto; }
  .added-item-image .card-image-placeholder { width: 100px; height: 100px; margin: 0 auto; }
  .added-item-info h2 { font-size: 1.1rem; }
  .added-item-actions { justify-content: center; }
  .added-item-actions .btn { flex: 1; text-align: center; min-width: 0; }
  .suggestions-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .suggestions-grid .card-image { height: 130px; }
  .suggestions-grid .card-image-placeholder { height: 130px; font-size: 2.5rem; }
  .suggestions-grid .card-body { padding: 0.5rem 0.6rem; }
  .suggestions-grid .card-title { font-size: 0.82rem; }
  .suggestions-grid .price { font-size: 0.85rem; }
  .suggestions-grid .btn-sm { padding: 0.2rem 0.4rem; font-size: 0.68rem; }
  .suggestions-grid .card-footer { gap: 0.3rem; }

  /* Cart mobile */
  .cart-table th, .cart-table td { padding: 0.5rem 0.35rem; font-size: 0.8rem; }
  .cart-table th:nth-child(4), .cart-table td:nth-child(4) { display: none; }
  .cart-total-row td { font-size: 0.95rem; }
  .qty-btn { width: 26px; height: 26px; font-size: 0.85rem; }
  .qty-value { min-width: 22px; font-size: 0.8rem; }
  .cart-actions { flex-direction: column; }
  .cart-actions .btn { width: 100%; text-align: center; }
  .checkout-notice { padding: 1rem; }
  .checkout-notice h3 { font-size: 1.05rem; }
  .checkout-notice p { font-size: 0.85rem; }
  .checkout-notice .btn { width: 100%; text-align: center; }
  .cart-custom-badge { font-size: 0.6rem; padding: 0.1rem 0.35rem; margin-left: 0.25rem; }

  /* Categories mobile */
  .categories-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .category-card { padding: 1rem 0.75rem; }
  .category-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
  .category-name { font-size: 0.9rem; }
  .category-desc { font-size: 0.75rem; }

  /* About mobile */
  .about-layout h2 { font-size: 1.4rem; }
  .about-layout h3 { font-size: 1.05rem; }
  .about-layout p { font-size: 0.9rem; }
  .about-cta { flex-direction: column; }
  .about-cta .btn { width: 100%; text-align: center; }

  /* Contact mobile */
  .contact-info-col h3 { font-size: 1.05rem; }
  .contact-info-col p { font-size: 0.85rem; }

  /* Custom order page mobile */
  .custom-order-actions { flex-direction: column; }
  .custom-order-actions .btn { width: 100%; text-align: center; }
  .size-option-inner { padding: 0.65rem 0.85rem; }
  .size-label { font-size: 0.9rem; }
  .size-price { font-size: 0.9rem; }

  /* Footer mobile */
  .footer-inner { gap: 1rem; }
  .footer-nav { gap: 0.5rem; }
  .footer-nav a { font-size: 0.82rem; }
  .footer-brand p { font-size: 0.78rem; }
  .footer-copy { font-size: 0.72rem; }

  /* Studio blurb mobile */
  .studio-blurb h2 { font-size: 1.3rem; }
  .studio-blurb p { font-size: 0.9rem; }

  /* Related grid mobile */
  .related-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .related-grid .card-image { height: 140px; }
  .related-grid .card-image-placeholder { height: 140px; font-size: 2.5rem; }
}

/* ═══════════════════════════════════════════════════════
   CART — Premium Design
   ═══════════════════════════════════════════════════════ */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
}

/* Cart Item Card */
.cart-item {
  display: flex;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 14px;
  animation: fadeInUp 0.5s ease both;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.cart-item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.cart-item-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cart-item:hover .cart-item-image img {
  transform: scale(1.05);
}
.cart-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #ddd;
  background: #f8f8f8;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.cart-item-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.cart-item-title a {
  color: #1a1a1a;
  transition: color 0.2s;
}
.cart-item-title a:hover { color: #8b6914; }

.cart-item-badge {
  display: inline-block;
  font-size: 0.68rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-item-remove {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: #ccc;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.cart-item-remove:hover {
  color: #ef4444;
  background: #fef2f2;
  transform: scale(1.1);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
}

.cart-item-price {
  font-size: 0.95rem;
  color: #666;
}

/* Qty Controls */
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn-new {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.qty-btn-new:hover {
  background: #e8e8e8;
  color: #1a1a1a;
}
.qty-btn-new:active {
  transform: scale(0.9);
}

.qty-display {
  width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a1a;
}
.qty-display.solo { width: auto; padding: 0 12px; }

.cart-item-subtotal {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  min-width: 75px;
  text-align: right;
}

/* Sidebar Summary */
.cart-summary-box {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 1.8rem;
  position: sticky;
  top: 90px;
  animation: fadeInUp 0.6s ease 0.15s both;
}
.cart-summary-box h3 {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.cart-summary-lines { margin-bottom: 0.8rem; }
.cart-s-line {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: #777;
}
.cart-s-free span:last-child {
  color: #16a34a;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.cart-s-total {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid #1a1a1a;
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  margin-top: 1.5rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.cart-checkout-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.cart-checkout-btn:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.cart-checkout-btn:hover::after {
  width: 400px;
  height: 400px;
}
.cart-checkout-btn:active {
  transform: translateY(0);
}

.cart-trust {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #bbb;
}

.cart-actions-below {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.cart-continue {
  font-size: 0.88rem;
  color: #888;
  transition: color 0.2s;
}
.cart-continue:hover { color: #1a1a1a; }
.cart-clear {
  border: none;
  background: none;
  color: #ccc;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
  font-family: inherit;
}
.cart-clear:hover { color: #ef4444; }

@media (max-width: 768px) {
  .cart-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cart-item { flex-direction: row; }
  .cart-item-image { width: 56px; height: 56px; }
  .cart-item-bottom { flex-wrap: wrap; gap: 0.5rem; }
}

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

/* ── Order Success Page ─────────────────────────────── */
.success-card {
  max-width: 560px;
  margin: 3rem auto;
  text-align: center;
  padding: 3rem 2rem;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-order-number {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.success-details {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.success-details p { margin: 0.3rem 0; }
.success-total {
  margin-top: 0.8rem !important;
  padding-top: 0.8rem;
  border-top: 1px solid #ddd;
  font-size: 1.1rem;
}
.success-message {
  color: #666;
  margin-bottom: 1.5rem;
}
