/* ============================================
   JOKER Store - Main Stylesheet
   Inspired by Shopify Dawn Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #FF6B35;
  --color-primary-dark: #E55A2B;
  --color-primary-light: #FFF0EA;
  --color-secondary: #2D2D2D;
  --color-accent: #FFB800;
  --color-success: #4CAF50;
  --color-danger: #E53935;
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  --color-border: #E5E5E5;
  --color-border-light: #F0F0F0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1280px;
  --header-height: 70px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Promo Banner --- */
.promo-banner {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #3A3A3A 100%);
  color: white;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow: hidden;
  white-space: nowrap;
}

.promo-banner .banner-scroll {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header-logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
}

.header-logo span {
  color: var(--color-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--color-primary);
}

.cart-icon {
  position: relative;
  font-size: 1.25rem;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-badge.visible {
  display: flex;
}

/* --- Hero Banner --- */
.hero-banner {
  background: linear-gradient(135deg, #FFF5F0 0%, #FFE8D6 50%, #FFF0E5 100%);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-secondary);
}

.hero-title span {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-secondary);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.hero-cta:hover {
  background: #444;
  transform: translateY(-2px);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

/* --- Product Grid --- */
.products-section {
  padding: 60px 0;
}

.category-section {
  padding: 20px 0 60px;
}

.category-section:first-of-type {
  padding-top: 60px;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary-light);
}

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

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

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero-title {
    font-size: 2rem;
  }
}

/* --- Product Card --- */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-image {
  position: relative;
  background: linear-gradient(135deg, #F5F5F5, #EDEDED);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image .placeholder-img {
  font-size: 4rem;
  opacity: 0.6;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-badge.sold-out {
  background: var(--color-text-muted);
}

.product-card-body {
  padding: 16px;
}

.product-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-category {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-current {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-original {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* --- Product Detail --- */
.product-detail {
  padding: 40px 0 60px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.product-detail-image {
  background: linear-gradient(135deg, #F5F5F5, #EDEDED);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image .placeholder-img {
  font-size: 8rem;
  opacity: 0.5;
}

.product-detail-info h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.product-detail-category {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.product-detail-price {
  margin-bottom: 20px;
}

.product-detail-price .price-current {
  font-size: 1.75rem;
}

.product-detail-price .price-original {
  font-size: 1.125rem;
}

.product-detail-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}

.quantity-selector label {
  font-weight: 600;
  margin-right: 12px;
  font-size: 0.9rem;
}

.quantity-selector button {
  width: 36px;
  height: 36px;
  background: var(--color-border-light);
  border: 1px solid var(--color-border);
  font-size: 1.125rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector button:first-of-type {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.quantity-selector button:last-of-type {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quantity-selector input {
  width: 56px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-add-cart {
  width: 100%;
  padding: 14px 28px;
  background: var(--color-primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: background 0.3s;
}

.btn-add-cart:hover {
  background: var(--color-primary-dark);
}

.btn-add-cart:disabled {
  background: var(--color-text-muted);
  cursor: not-allowed;
}

/* --- Cart Page --- */
.cart-page {
  padding: 40px 0 60px;
  min-height: 60vh;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.cart-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cart-empty p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  display: inline-block;
  background: var(--color-secondary);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: #444;
}

.cart-items {
  margin-bottom: 32px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  background: var(--color-surface);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 8px;
  }
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: #F5F5F5;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.cart-item-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-info .unit-price {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.cart-item-qty button {
  width: 30px;
  height: 30px;
  background: var(--color-border-light);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.cart-item-qty button:first-of-type {
  border-radius: 4px 0 0 4px;
}

.cart-item-qty button:last-of-type {
  border-radius: 0 4px 4px 0;
}

.cart-item-qty span {
  width: 40px;
  text-align: center;
  height: 30px;
  line-height: 30px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.85rem;
}

.cart-item-total {
  font-weight: 700;
  color: var(--color-primary);
  min-width: 60px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  padding: 4px;
  transition: color 0.2s;
}

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

.cart-summary {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 400px;
  margin-left: auto;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9375rem;
}

.cart-summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  border-top: 2px solid var(--color-border-light);
  margin-top: 8px;
  padding-top: 16px;
}

.cart-summary .btn-primary {
  display: block;
  text-align: center;
  margin-top: 16px;
  width: 100%;
}

.discount-info {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.discount-input {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.discount-input input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.discount-input button {
  padding: 8px 16px;
  background: var(--color-secondary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Checkout --- */
.checkout-page {
  padding: 40px 0 60px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

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

.checkout-section {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.checkout-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-secondary);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-summary-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.order-summary-sidebar .cart-summary {
  max-width: none;
  margin-left: 0;
}

.checkout-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
}

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

.checkout-item-image {
  width: 50px;
  height: 50px;
  background: #F5F5F5;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.checkout-item-info {
  flex: 1;
  font-size: 0.85rem;
}

.checkout-item-info .item-title {
  font-weight: 600;
}

.checkout-item-info .item-qty {
  color: var(--color-text-muted);
}

.checkout-item-price {
  font-weight: 600;
  white-space: nowrap;
}

.paypal-section {
  margin-top: 16px;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-secondary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  box-shadow: var(--shadow-lg);
}

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

.toast.success {
  background: var(--color-success);
}

.toast.error {
  background: var(--color-danger);
}

/* --- Admin --- */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #F5F5F5, #EDEDED);
}

.admin-login-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.admin-login-card .logo {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-login-card .logo span {
  color: var(--color-primary);
}

.admin-login-card p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.admin-login-card .form-group {
  text-align: left;
}

.admin-login-card .btn-primary {
  width: 100%;
  margin-top: 8px;
}

.login-error {
  color: var(--color-danger);
  font-size: 0.85rem;
  margin-top: 12px;
  display: none;
}

.login-error.show {
  display: block;
}

/* Admin Dashboard */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--color-secondary);
  color: white;
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
}

.admin-sidebar .sidebar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}

.admin-sidebar .sidebar-logo span {
  color: var(--color-primary);
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: rgba(255,255,255,0.08);
  color: white;
}

.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 32px;
  background: var(--color-bg);
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.btn-logout {
  background: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.btn-logout:hover {
  color: var(--color-danger);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-secondary);
}

/* Admin Tables */
.admin-table-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light);
}

.admin-table-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

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

.admin-table th {
  text-align: left;
  padding: 12px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: #FAFAFA;
  border-bottom: 1px solid var(--color-border-light);
}

.admin-table td {
  padding: 12px 20px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border-light);
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.paid {
  background: #E8F5E9;
  color: #2E7D32;
}

.status-badge.pending {
  background: #FFF3E0;
  color: #E65100;
}

.status-badge.active {
  background: #E8F5E9;
  color: #2E7D32;
}

.status-badge.draft {
  background: #F5F5F5;
  color: #666;
}

.btn-sm {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-sm-edit {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.btn-sm-edit:hover {
  background: var(--color-primary);
  color: white;
}

.btn-sm-toggle {
  background: #E8F5E9;
  color: #2E7D32;
}

.btn-sm-toggle:hover {
  background: #C8E6C9;
}

.btn-sm-delete {
  background: #FFEBEE;
  color: var(--color-danger);
}

.btn-sm-delete:hover {
  background: var(--color-danger);
  color: white;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.modal-actions .btn-secondary {
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}

.modal-actions .btn-secondary:hover {
  background: var(--color-border);
}

/* Footer */
.site-footer {
  background: var(--color-secondary);
  color: white;
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

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

.footer-brand .logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand .logo span {
  color: var(--color-primary);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

.footer-links h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: background 0.3s;
  z-index: 50;
}

.back-to-top:hover {
  background: #444;
}

/* Product real image */
.product-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.product-detail-img { width: 100%; height: auto; max-height: 500px; object-fit: contain; border-radius: var(--radius-md); background: linear-gradient(135deg, #F5F5F5, #EDEDED); }
