/**
 * SOROTECNO BASE CSS
 * Core styles and layouts for Marketplace Store
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-main);
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-main);
}

/* Layout Container */
.store-container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1400px) {
  .store-container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* Base Utility Classes */
.text-brand { color: var(--color-brand-primary); }
.text-deal { color: var(--color-deal-red); }
.text-shipping { color: var(--color-shipping-green); }
.text-muted { color: var(--color-text-muted); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* Badge Utilities */
.badge-deal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-deal-red);
  color: #FFFFFF;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-full {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-shipping-bg);
  color: var(--color-shipping-green);
  font-size: var(--text-2xs);
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0, 166, 80, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-bestseller {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFBEB;
  color: #B45309;
  font-size: var(--text-2xs);
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid #FDE68A;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F3F5;
}

::-webkit-scrollbar-thumb {
  background: #C1C7CD;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9AA0A6;
}
