@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #000000;
  --accent: #0057B8;
  --background: #FFFFFF;
  --surface: #FFFFFF;
  --text: #000000;
  --text-secondary: #767676;
  --border: #E5E5E5;
  --card-bg: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --border-radius: 0;
}

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

a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
  color: #2549BA !important;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

/* Header - GOAT Style (Thin, minimalist) */
header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.trust-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 100px;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 25px !important;
  }

  .layout-grid {
    padding: 15px 0 !important;
  }
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-primary);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

h1 {
  font-size: 40px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 35px !important;
  }
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

/* Hero Section */
.hero-section {
  margin-bottom: 40px;
  padding: 30px 0 50px;
  border-bottom: 1px solid var(--border);
}

.hero-section h1 {
  font-size: 48px;
  max-width: 800px;
  margin-bottom: 40px;
}

.hero-section p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

/* Product Section */
.product-section h2 {
  font-size: 32px;
  margin-bottom: 0;
}

/* Layout Grid */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  padding: 40px 0;
}

@media (min-width: 1025px) {
  .layout-grid {
    grid-template-columns: 240px 1fr;
  }
}

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

  aside {
    display: none;
  }
}

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

.logo img {
  height: 62px;
  width: auto;
}

.search-bar {
  flex: 1;
  max-width: 600px;
  margin: 0 40px;
}

.search-bar input {
  width: 100%;
  border: 1px solid var(--border);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: var(--border-radius);
}

.search-bar input:focus {
  border-color: var(--text);
}

.nav-bar {
  border-bottom: 1px solid var(--border);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-item.has-submenu:hover .submenu {
  display: block;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background);
  min-width: 240px;
  border: 1px solid var(--border);
  list-style: none;
  z-index: 1000;
  padding: 12px 0;
}

.submenu li a {
  display: block;
  padding: 10px 24px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.submenu li a:hover {
  background-color: #F8FAFC;
  text-decoration: none;
}

.nav-link {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 15px 0;
  display: block;
  color: var(--text);
}

/* Sidebar - Minimalist links */
.sidebar-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.filter-group {
  margin-bottom: 40px;
}

.filter-list {
  list-style: none;
}

.filter-item {
  margin-bottom: 8px;
}

.filter-link {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.filter-link:hover {
  text-decoration: none;
  color: #2549BA;
}

/* Product Cards - GOAT Premium Aesthetics */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

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

.product-card {
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
  text-decoration: none !important;
}

.product-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.product-image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  padding: 12px;
  margin-top: 12px;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.product-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  background-color: #ffffff;
  flex: 1;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  height: 40px;
  /* Approximately 2 lines */
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text);
  text-decoration: none !important;
}

.product-card:hover .product-name {
  color: var(--primary);
}

.product-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-top: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: 1px solid #2549BA;
  background: transparent;
  color: #2549BA;
  transition: all 0.3s;
  text-align: center;
  border-radius: var(--border-radius);
}

.btn:hover {
  background: #2549BA !important;
  color: white !important;
}

.btn-primary {
  background: #000000;
  color: white;
}

.btn-primary:hover {
  background: #2549BA !important;
  color: white !important;
}

/* Trust Bar - Clean text strip */
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.trust-item {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

@media (min-width: 1025px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-links li {
  list-style: none;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-secondary);
}

/* Product Detail Page Overrides */
.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.product-gallery img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.prescription-form-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.prescription-table-wrapper {
  width: 100%;
}

.product-price-large {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 40px;
}

.prescription-table {
  border: 1px solid var(--border);
  box-shadow: none;
}

.prescription-table th {
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.product-description-area {
  margin-top: 40px;
}

.product-description-area h2,
.product-description-area strong {
  color: var(--text-secondary);
}

@media (max-width: 1023px) {
  .product-detail {
    display: flex;
    flex-direction: column;
  }

  .product-info-area {
    display: contents;
  }

  .product-info-header {
    order: 1;
  }

  .product-gallery {
    order: 2;
    margin-bottom: 40px;
  }

  .prescription-form-area {
    order: 3;
  }

  .product-description-area {
    order: 4;
  }
}

/* Cart Page */
.cart-page h1 {
  margin-bottom: 40px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.cart-group-header {
  background: #F8FAFC;
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
}

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

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

.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.cart-item-eye {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-item-params {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cart-item-params span strong {
  color: var(--text);
}

.cart-item-actions {
  display: flex;
  gap: 16px;
}

.cart-action-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.cart-action-link.remove {
  color: #EF4444;
}

.cart-item-pricing {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 100px;
}

.cart-item-qty {
  font-size: 12px;
  color: var(--text-secondary);
}

.cart-item-total {
  font-size: 16px;
  font-weight: 700;
}

.cart-group-footer {
  padding: 16px 24px;
  text-align: right;
  font-weight: 700;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
}

.cart-totals {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.cart-total-amount {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
}

.voucher-area input {
  flex: 1;
  max-width: 300px;
  border: 1px solid var(--border);
  padding: 12px 20px;
  font-size: 13px;
  outline: none;
  border-radius: var(--border-radius);
}

.trust-badges {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.trust-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Policy Content Styling */
.goat-style-blurb {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.goat-style-blurb h2,
.goat-style-blurb h3 {
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.goat-style-blurb p {
  margin-bottom: 24px;
}

/* Form Styles */
.standard-form {
  max-width: 400px;
}

.standard-form ul {
  list-style: none;
}

.standard-form li {
  margin-bottom: 16px;
}

.standard-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  padding: 14px 20px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: var(--background);
  color: var(--text);
  border-radius: var(--border-radius);
}

.standard-form input[type="text"]:focus {
  border-color: var(--text);
}

.standard-form input[type="submit"] {
  width: 100%;
}

.main-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.main-description a {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: normal !important;
  font-style: italic;
}

.main-description a:hover {
  color: #2549BA !important;
  text-decoration: none !important;
}

.specs-table td {
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
}

/* Mobile Optimization */
.mobile-only {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .mobile-toggle {
    display: flex;
  }

  .trust-bar {
    display: none;
  }

  .header-top {
    height: 60px;
    gap: 12px;
  }

  .logo img {
    height: 45px;
  }

  .search-bar {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 20px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    display: none;
    z-index: 1001;
  }

  .search-bar.active {
    display: block;
  }

  .nav-bar {
    border-bottom: none;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--background);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    padding: 15px 20px;
  }

  .nav-item.has-submenu:hover .submenu {
    display: none;
  }

  .nav-item.has-submenu .submenu {
    position: static;
    display: none;
    border: none;
    padding: 0 0 10px 20px;
    background: transparent;
  }

  .nav-item.has-submenu.active .submenu {
    display: block !important;
  }

  .submenu li a {
    padding: 8px 24px;
  }

  .header-actions {
    gap: 16px !important;
  }

  .hero-section {
    padding: 40px 0 !important;
    margin-bottom: 40px !important;
  }

  .hero-section h1 {
    font-size: 35px !important;
  }

  .product-section h2 {
    font-size: 20px !important;
  }
}