/* ING Shop Australia — Styles */
html.cookie-consent-given .cookie-banner {
  transform: translateY(120%);
}

:root {
  --color-primary: #1a56db;
  --color-primary-dark: #164ec9;
  --color-accent: #f97316;
  --color-accent-dark: #ea580c;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-border: #e5e7eb;
  --color-success: #16a34a;
  --radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

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

.main-nav {
  display: flex;
  gap: 28px;
}

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

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

.cart-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  transition: color 0.2s;
}

.cart-toggle:hover {
  color: var(--color-primary);
}

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

/* Hero */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  padding: 80px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #1342a3 100%);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-soft);
}

/* Trust bar */
.trust-bar {
  background: var(--color-bg-soft);
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.trust-item {
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1rem;
  color: var(--color-text);
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Section headers */
.section-header {
  text-align: center;
  padding: 64px 0 40px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding-bottom: 80px;
}

.product-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.product-image-link {
  display: block;
  background: var(--color-bg-soft);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image-link img {
  transform: scale(1.04);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.size-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

.size-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  margin-bottom: 14px;
  background: white;
  cursor: pointer;
}

.size-select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.size-select.is-invalid {
  border-color: #dc2626;
  background: #fef2f2;
}

.add-to-cart {
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
}

/* About */
.about-section {
  background: var(--color-bg-soft);
  padding: 80px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.about-content ul {
  list-style: none;
}

.about-content li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--color-text);
}

.about-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Shipping */
.shipping-section {
  padding: 80px 0;
  text-align: center;
}

.shipping-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.shipping-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.shipping-grid h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.shipping-grid p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-section {
  background: var(--color-bg-soft);
  padding: 80px 0;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-section p {
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.contact-section a {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-section a:hover {
  text-decoration: underline;
}

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

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

.footer-inner img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-inner p {
  color: #9ca3af;
  font-size: 0.95rem;
}

.footer-inner h4 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-inner a {
  display: block;
  color: #9ca3af;
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-drawer.open .cart-overlay {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

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

.cart-header h2 {
  font-size: 1.25rem;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: 40px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--color-bg-soft);
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--color-primary);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.cart-item-remove:hover {
  color: #dc2626;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cart-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.btn-checkout {
  width: 100%;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--color-text);
  color: white;
  padding: 14px 24px;
  border-radius: 9999px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

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

  .section-header h2,
  .about-content h2,
  .shipping-section h2,
  .contact-section h2 {
    font-size: 1.75rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: white;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(120%);
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-content p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}

.cookie-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}
