:root {
  --primary-color: #000000;
  --primary-color-light: #bfbfbf;
  --secondary-color: #ffffff;
  --secondary-color-light: #d6d6d6;
  --text-color: #000000;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol,
ul {
  list-style: none;
}

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

a:hover {
  color: var(--primary-color);
  text-decoration: solid underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: #ffffff;
}

header {
  padding: 1.5rem;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

#header-first-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 0.5rem 0;
}

nav a {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

nav a:hover {
  background-color: var(--secondary-color);
}

footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  background-color: var(--secondary-color);
}

#main-content {
  min-height: 70vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-primary {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-block;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 77, 230, 0.2);
  text-decoration: none;
}

.cta-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.cta-secondary:hover {
  background-color: var(--secondary-color-light);
  text-decoration: none;
}

#gtm-container-id-form {
  display: flex;
  gap: 0.5rem;
}

#gtm-container-id-input,
#newsletter-email-input {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: 2px solid #e2e8f0;
  transition: var(--transition);
  font-size: 1rem;
}

#gtm-container-id-input:focus,
#newsletter-email-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(107, 77, 230, 0.1);
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-container {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  nav {
    flex-wrap: wrap;
  }

  #header-first-row {
    flex-direction: column;
    gap: 1rem;
  }

  #gtm-container-id-form {
    width: 100%;
  }

  #gtm-container-id-input {
    flex: 1;
  }
}

/* Cart styles */
.cart-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-table th,
.cart-table td {
  padding: 1rem;
  text-align: right;
}

.cart-table th:first-child,
.cart-table td:first-child {
  text-align: left;
}

.cart-table td:first-child {
  text-align: left;
}

.cart-table th {
  text-align: right;
}

.cart-table th:first-child {
  text-align: left;
}

.cart-table thead {
  background-color: var(--primary-color);
  color: white;
}

.cart-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.cart-table tbody tr:hover {
  background-color: #f8f8f8;
}

.cart-table tfoot {
  background-color: #f8f8f8;
  font-weight: 600;
}

.cart-action-btn {
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.cart-action-btn:hover {
  background-color: #eee;
}

.cart-delete-btn {
  color: #dc2626;
}

/* Add to index.css */
.quantity-btn {
  background: none;
  border: none;
  /* border: 1px solid var(--primary-color); */
  border-radius: var(--border-radius);
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.quantity-btn:hover {
  background-color: var(--secondary-color-light);
}

.delete-btn {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.delete-btn:hover {
  background-color: #fee2e2;
}

/* Checkout form styles */
.checkout-form {
  margin-top: 2rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  background-color: #f9f9f9;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  transition: var(--transition);
  font-family: inherit;
  font-size: 1rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.checkout-submit {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: var(--transition);
  font-size: 1rem;
}

.checkout-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
