.sn-theme-fitbyines {
  --color-primary-dark: #56320D;
  --color-primary: #79461A;
  --color-primary-light: #C3803D;
  --color-tan: #BDA184;
  --color-gray: #555555;
  --color-light-gray: #DDDDDD;
  --color-background: #F5F5F5;
  --color-error: #CC0000;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-3xl: 4rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-full: 50%;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-button: 0 4px 12px rgba(121, 70, 26, 0.3);
  font-family: Outfit, sans-serif;
  background: var(--color-background);
  color: #333;
  padding-top: 80px;
}

.sn-theme-fitbyines.template-editor-active {
  padding-top: 126px;
}

.sn-theme-fitbyines:has(.checkout-page) {
  padding-top: 0;
}

.sn-theme-fitbyines .fitbyines-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.sn-theme-fitbyines .page-title {
  font-size: 2rem;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.sn-theme-fitbyines .page-title--left {
  text-align: left;
  margin-bottom: var(--spacing-lg);
}

.sn-theme-fitbyines .header {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.sn-theme-fitbyines .header-content,
.sn-theme-fitbyines .header-brand,
.sn-theme-fitbyines .header-actions {
  display: flex;
  align-items: center;
}

.sn-theme-fitbyines .header-content {
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
}

.sn-theme-fitbyines .header-brand {
  gap: var(--spacing-md);
}

.sn-theme-fitbyines .header-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.sn-theme-fitbyines .header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.sn-theme-fitbyines .header-back-link {
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
}

.sn-theme-fitbyines .header-back-link:hover {
  color: var(--color-primary);
}

.sn-theme-fitbyines .header-back-link::before {
  content: "← ";
}

.sn-theme-fitbyines .header-actions {
  gap: 0.75rem;
}

.sn-theme-fitbyines .header-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  background: transparent;
  border: 0;
}

.sn-theme-fitbyines .header-icon-btn svg {
  width: 22px;
  height: 22px;
}

.sn-theme-fitbyines .cart-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.sn-theme-fitbyines .cart-button--empty {
  background: #666;
}

.sn-theme-fitbyines .cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-error);
  color: #fff;
  border-radius: var(--radius-full);
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid #fff;
}

.sn-theme-fitbyines .category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.sn-theme-fitbyines .category-radio-label {
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-light-gray);
  background: #fff;
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

.sn-theme-fitbyines .category-radio-label.is-active,
.sn-theme-fitbyines .category-radio-label:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.sn-theme-fitbyines .products-grid-homepage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.sn-theme-fitbyines .card.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sn-theme-fitbyines .card.product-card .product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.sn-theme-fitbyines .product-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-gray);
  color: var(--color-gray);
}

.sn-theme-fitbyines .product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  margin: var(--spacing-md) 0 var(--spacing-xs);
}

.sn-theme-fitbyines .product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.sn-theme-fitbyines .product-price-old {
  margin-left: var(--spacing-sm);
  font-size: 1rem;
  color: var(--color-gray);
  text-decoration: line-through;
}

.sn-theme-fitbyines .product-description {
  color: var(--color-gray);
  font-size: 0.95rem;
  margin-top: var(--spacing-sm);
}

.sn-theme-fitbyines .variation-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
}

.sn-theme-fitbyines .variation-pill {
  min-width: 2.75rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #000;
  font-weight: 600;
}

.sn-theme-fitbyines .variation-pill--selected,
.sn-theme-fitbyines .variation-pill:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.sn-theme-fitbyines .variation-pill:disabled {
  opacity: 0.42;
}

.sn-theme-fitbyines .btn.btn-primary {
  margin-top: auto;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-button);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: 0;
  width: 100%;
}

.sn-theme-fitbyines .footer {
  background: #6B4226;
  color: #fff;
  padding: var(--spacing-xl) var(--spacing-lg);
  margin-top: auto;
  text-align: center;
}

.sn-theme-fitbyines .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

.sn-theme-fitbyines .footer-text {
  font-size: 0.875rem;
  font-weight: 600;
}

.sn-theme-fitbyines .footer-text--muted {
  font-weight: 400;
  opacity: 0.85;
}

.sn-theme-fitbyines .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.sn-theme-fitbyines .footer-link {
  color: #fff;
  text-decoration: none;
}

.sn-theme-fitbyines .footer-link:hover {
  text-decoration: underline;
}

.sn-theme-fitbyines .footer-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.sn-theme-fitbyines .footer-payment-logo,
.sn-theme-fitbyines .footer-secured img {
  height: 24px;
  width: auto;
}

.sn-theme-fitbyines .footer-secured {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.sn-theme-fitbyines #product-price {
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .sn-theme-fitbyines .products-grid-homepage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sn-theme-fitbyines {
    padding-top: 70px;
  }

  .sn-theme-fitbyines .header-logo {
    height: 32px;
  }

  .sn-theme-fitbyines .products-grid-homepage {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .sn-theme-fitbyines .card.product-card .product-image {
    height: 240px;
  }
}
