/* ==========================================================================
   DapCats Design System - High-Performance Vanilla CSS
   ========================================================================== */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text-main: #111111;
  --text-muted: #666666;
  --border: #e6e6e6;
  --border-focus: #111111;
  --accent: #1e3a34;
  --accent-hover: #142723;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1240px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 5rem;
}

/* ==========================================================================
   Header & Responsive Logos
   ========================================================================== */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.cart-icon-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.cart-icon-btn:hover {
  border-color: var(--text-main);
}

.cart-counter {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 6.5rem 0 5.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

.btn-primary {
  display: inline-block;
  background: var(--text-main);
  color: #ffffff;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-main);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--text-main);
}

/* ==========================================================================
   Product Grid & Cards
   ========================================================================== */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 4.5rem 0 2.25rem;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-header a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-header a:hover {
  color: var(--text-main);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d1d1d6;
}

.product-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.03);
}

.product-card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.product-card-price {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.card-size-select {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: var(--surface);
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.card-size-select:focus {
  border-color: var(--border-focus);
}

.btn-add-cart {
  width: 100%;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 0.6rem 0;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

.btn-add-cart:hover {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

/* ==========================================================================
   Product Detail Page & Interactive Gallery
   ========================================================================== */

.breadcrumb {
  margin: 2.5rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--text-main);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-image-box {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.detail-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease-in-out;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.thumb-btn {
  flex: 0 0 80px;
  height: 80px;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}

.thumb-btn:hover {
  border-color: #999999;
}

.thumb-btn.active {
  border-color: var(--text-main);
}

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

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
}

.detail-price {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.detail-desc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.size-selector-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

.size-pill-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.size-pill {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.size-pill:hover {
  border-color: var(--text-main);
}

.size-pill.selected {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

.purchase-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.quantity-btn {
  background: none;
  border: none;
  width: 40px;
  height: 48px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  color: var(--accent);
}

.quantity-input {
  width: 45px;
  text-align: center;
  border: none;
  font-weight: 600;
  outline: none;
}

.btn-detail-add {
  flex-grow: 1;
  background: var(--text-main);
  color: #fff;
  border: 1px solid var(--text-main);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  height: 48px;
}

.btn-detail-add:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   Reviews Section & Verification Error State
   ========================================================================== */

.reviews-section {
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
}

.reviews-section h3 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.reviews-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.review-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.review-stars {
  color: #eab308;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.review-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.review-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 6px;
  height: fit-content;
}

.review-form-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.verification-notice {
  display: none;
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.25s ease-in-out forwards;
}

.verification-notice strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: var(--surface);
  border-color: var(--border-focus);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================================
   Cart View
   ========================================================================== */

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.cart-row {
  border-bottom: 1px solid var(--border);
}

.cart-row td {
  padding: 1.5rem 0;
  vertical-align: middle;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cart-item-thumb {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  background: #eee;
  object-fit: cover;
  border: 1px solid var(--border);
}

.cart-item-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.cart-item-size {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.cart-quantity-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.cart-qty-btn {
  background: transparent;
  border: none;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-weight: bold;
}

.cart-qty-val {
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-remove-item {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  margin-left: 0.5rem;
  transition: var(--transition);
}

.btn-remove-item:hover {
  color: var(--danger-text);
}

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  height: fit-content;
}

.cart-summary h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1.25rem;
}

.btn-checkout {
  width: 100%;
  background: var(--text-main);
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-checkout:hover {
  background: var(--accent);
}

.empty-cart-state {
  text-align: center;
  padding: 5rem 0;
}

.empty-cart-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Editorial & Contact Redesign
   ========================================================================== */

.editorial-header {
  text-align: center;
  padding: 5rem 0 3.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.editorial-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.editorial-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 3.5rem 0;
  align-items: center;
}

.editorial-copy h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.editorial-copy p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.editorial-image {
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 4.5rem 0;
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Contact Pure Typography Card */
.contact-container-refined {
  max-width: 860px;
  margin: 4.5rem auto;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.contact-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.contact-detail-block h3 {
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.contact-detail-block p,
.contact-detail-block a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.contact-detail-block a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.contact-detail-block .sub-info {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.35rem;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-main);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2.5rem;
  flex-shrink: 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3.5rem;
}

.footer-brand .footer-logo-img {
  height: 32px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints & Touch Optimization
   ========================================================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-layout {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-layout,
  .cart-layout,
  .editorial-grid,
  .values-grid,
  .contact-details-grid,
  .reviews-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .header-container {
    height: 70px;
  }
  .nav-links {
    gap: 1.25rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 580px) {
  .container {
    padding: 0 1.25rem;
  }
  .header-container {
    height: 64px;
  }
  .site-logo-img {
    height: 32px;
  }
  .nav-links {
    gap: 0.85rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 2rem 1.5rem;
  }
  .contact-card h1 {
    font-size: 2rem;
  }
  .purchase-actions {
    flex-direction: column;
  }
  .quantity-control {
    width: 100%;
    justify-content: space-between;
  }
  .quantity-input {
    flex-grow: 1;
  }
}