:root {
  --primary: #0066cc;
  --primary-light: #0077ee;
  --primary-dark: #0050a0;
  --secondary: #ff6b35;
  --dark: #1e1e1e;
  --light: #f7f9fd;
  --lighter: #f0f4fc;
  --success: #28a745;
  --danger: #dc3545;
  --gray: #666666;
  --gray-light: #cccccc;
  --transition: all 0.3s ease;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  color: var(--dark);
}

h1, h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--dark);
}

p {
  margin: 0 0 1rem 0;
}

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

/* Layout */
main {
  flex-grow: 1;
}

.section {
  padding: 3rem 0;
}

.section.bg-light,
.bg-light {
  background-color: var(--lighter);
}

.section-bg {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.section-title-large {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.logo a {
  text-decoration: none;
  color: var(--primary);
}

.logo-suffix {
  color: var(--dark);
}

.nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--dark);
  border-radius: var(--radius-md);
  transition: var(--transition);
  margin: 0 2px;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary-light);
  color: #fff;
}

.nav-link.active {
  background-color: var(--primary);
}

.btn-signup {
  background-color: var(--secondary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.5rem 1.2rem;
}

.btn-signup:hover {
  background-color: #ff5520;
  color: #fff;
}

#userMenu {
  font-weight: 600;
  color: var(--primary);
}

#logoutBtn {
  color: var(--danger);
}

#logoutBtn:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  transition: var(--transition);
}

.header[data-menu-open="true"] .nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 500;
}

.header[data-menu-open="true"] .nav-list {
  flex-direction: column;
}

.header[data-menu-open="true"] .nav-link {
  margin: 0.5rem 1rem;
  padding-left: 1.5rem;
}

.header[data-menu-open="true"] .nav-link:hover {
  background-color: var(--lighter);
}

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

.hamburger {
display: flex;
}

.header[data-menu-open="true"] .nav-link {
margin: 0.5rem 1rem;
padding: 0.7rem 1rem;
}

.btn-signup {
margin: 0.5rem 1rem;
}
}

/* Hero */
.hero {
position: relative;
height: 60vh;
min-height: 400px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
overflow: hidden;
}

.hero::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: 
  radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
  radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(0, 102, 204, 0.7), rgba(102, 126, 234, 0.6));
opacity: 0.3;
}

.hero-content {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
padding: 2rem;
text-align: center;
color: #fff;
}

.hero-title {
font-size: clamp(1.8rem, 5vw, 2.8rem);
margin-bottom: 0.8rem;
font-weight: 700;
}

.hero-subtitle {
font-size: 1.1rem;
margin-bottom: 1.5rem;
max-width: 700px;
}

/* Features Grid */
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
margin-top: 2rem;
}

.feature-card {
text-align: center;
padding: 2rem 1.5rem;
background-color: #fff;
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
transition: var(--transition);
border: 1px solid #f0f0f0;
}

.feature-card:hover {
transform: translateY(-6px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
width: 64px;
height: 64px;
margin: 0 auto 1rem;
background-color: var(--primary-light);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.feature-icon svg {
color: #fff;
}

/* Product Grid */
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}

.product-card {
background-color: #fff;
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
border: 1px solid #f0f0f0;
}

.product-card:hover {
transform: translateY(-6px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-img {
width: 100%;
height: 200px;
object-fit: cover;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-title {
font-size: 1.1rem;
padding: 0.8rem 1rem 0.4rem;
margin: 0;
}

.product-price {
font-size: 1rem;
color: var(--primary);
font-weight: 600;
padding: 0 1rem 0.4rem;
}

.product-desc {
font-size: 0.9rem;
color: var(--gray);
padding: 0 1rem 1rem;
margin: 0;
}

.product-card .btn {
margin: 0 1rem 1rem;
width: calc(100% - 2rem);
}

/* Filter */
.product-filter {
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}

.filter-btn {
padding: 0.5rem 1rem;
border-radius: var(--radius-md);
border: 1px solid var(--gray-light);
background-color: #fff;
font-size: 0.9rem;
cursor: pointer;
transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
border-color: var(--primary);
color: var(--primary);
}

/* About & Values */
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
align-items: flex-start;
}

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

.values-list {
margin-top: 1rem;
}

.values-list li {
margin: 0.7rem 0 0.7rem 1.5rem;
padding-left: 0.5rem;
position: relative;
}

.values-list li::before {
content: "- ";
position: absolute;
left: -1rem;
color: var(--primary);
}

/* Footer */
.footer {
background-color: #1e1e1e;
color: #ccc;
padding: 2.5rem 0 1.5rem;
}

.footer-light {
background-color: #f0f4fc;
color: #444;
}

.footer-top {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 1.5rem;
gap: 1rem;
}

.footer-logo a {
color: #fff;
font-size: 1.4rem;
font-weight: 700;
}

.footer-logo a:hover {
text-decoration: underline;
}

.footer-logo a span {
color: #fff;
}

.footer-contact a,
.footer-contact a:hover {
color: #ccc;
}

.footer-links ul {
display: flex;
flex-wrap: wrap;
list-style: none;
gap: 0.8rem;
}

.footer-links a {
color: #ccc;
text-decoration: none;
font-size: 0.92rem;
transition: var(--transition);
}

.footer-links a:hover {
color: #fff;
}

.footer-bottom {
text-align: center;
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid #444;
font-size: 0.85rem;
color: #aaa;
}

/* Buttons */
.btn {
display: inline-block;
padding: 0.7rem 1.4rem;
font-size: 0.95rem;
border-radius: var(--radius);
border: 2px solid transparent;
cursor: pointer;
text-align: center;
text-decoration: none;
transition: var(--transition);
min-width: 120px;
position: relative;
}

.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}

.btn-primary {
background-color: var(--primary);
color: #fff;
border-color: var(--primary);
}

.btn-primary:hover {
background-color: var(--primary-dark);
border-color: var(--primary-dark);
}

.btn-outline {
background-color: transparent;
color: var(--primary);
border-color: var(--primary);
}

.btn-outline:hover {
background-color: var(--primary-light);
color: #fff;
}

.btn-secondary {
background-color: var(--secondary);
color: #fff;
border-color: var(--secondary);
}

.btn-secondary:hover {
opacity: 0.9;
}

.btn-block {
width: 100%;
justify-content: center;
}

.btn-white {
background-color: #fff;
color: var(--primary);
border-color: #fff;
}

.btn-white:hover {
background-color: #f0f4fc;
}

/* CTA Section */
.cta-section {
background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
color: #fff;
text-align: center;
padding: 3rem 2rem;
}

.cta-content h2 {
font-size: 1.8rem;
margin: 0 0 1rem;
}

.cta-subtitle {
font-size: 1rem;
margin: 0 0 1.5rem;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}

/* Contact Page */
.contact-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
}

.contact-info {
padding-right: 1.5rem;
}

.contact-info h2 {
margin-bottom: 1rem;
}

.contact-details li {
margin-bottom: 0.5rem;
}

.contact-details a {
color: var(--primary);
text-decoration: none;
}

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

.contact-form-wrapper {
background-color: #fff;
border-radius: var(--radius-lg);
padding: 1.8rem 1.5rem;
box-shadow: var(--shadow);
}

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

.form-group label {
display: block;
margin-bottom: 0.4rem;
font-weight: 600;
color: var(--dark);
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 0.7rem 0.8rem;
font-size: 0.95rem;
border: 2px solid #ddd;
border-radius: var(--radius);
transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary);
}

/* Password Toggle */
.password-input-group {
position: relative;
}

.toggle-password-btn {
position: absolute;
right: 0.5rem;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
padding: 0.3rem 0.5rem;
cursor: pointer;
}

/* Password Rules */
.password-rules {
margin-top: 0.4rem;
font-size: 0.8rem;
color: var(--gray);
}

.password-rules li {
display: inline-block;
padding: 0.2rem 0.5rem;
margin: 0 0.3rem 0.3rem 0;
border-radius: 2rem;
border: 1px solid var(--gray-light);
color: var(--gray);
}

.password-rules li.valid {
background-color: rgba(40, 167, 69, 0.15);
color: var(--success);
border-color: var(--success);
}

/* Form Messages */
.form-message {
margin-top: 0.8rem;
padding: 0.6rem 0.8rem;
border-radius: var(--radius);
font-size: 0.9rem;
}

.form-message.success {
background-color: rgba(40, 167, 69, 0.15);
color: var(--success);
border: 1px solid var(--success);
}

.form-message.error {
background-color: rgba(220, 53, 69, 0.15);
color: var(--danger);
border: 1px solid var(--danger);
}

/* Error Messages */
.error-message {
margin-top: 0.3rem;
font-size: 0.8rem;
color: var(--danger);
min-height: 1.2rem;
}

/* Checkbox Label */
.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: normal;
cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
width: auto;
margin: 0;
cursor: pointer;
}

.checkbox-label a {
color: var(--primary);
text-decoration: none;
}

.checkbox-label a:hover {
text-decoration: underline;
}

/* Auth Pages */
.auth-section {
background-color: #f0f4fc;
padding: 4rem 0;
}

.auth-form {
background-color: #fff;
border-radius: var(--radius-lg);
padding: 2rem 1.8rem;
box-shadow: var(--shadow);
margin: 0 auto;
max-width: 480px;
}

.auth-title {
font-size: 1.7rem;
margin-bottom: 0.4rem;
text-align: center;
}

.auth-subtitle {
text-align: center;
margin-bottom: 1.5rem;
color: var(--gray);
}

.password-hint {
display: block;
margin-top: 0.4rem;
font-size: 0.8rem;
color: var(--gray);
}

.auth-footer {
margin-top: 1.2rem;
text-align: center;
}

.auth-footer a {
color: var(--primary);
text-decoration: none;
}

.auth-footer a:hover {
text-decoration: underline;
}

/* Legal Article */
.legal-article {
line-height: 1.7;
}

.legal-article h2 {
margin: 1.5rem 0 0.7rem;
font-size: 1.4rem;
color: var(--dark);
}

.legal-article ul {
margin: 0.5rem 0 1rem 1.5rem;
}

.legal-article ul li {
margin: 0.4rem 0;
}

/* Mobile */
@media (max-width: 768px) {
.hero {
height: 55vh;
}

.hero-title {
font-size: clamp(1.6rem, 5vw, 2.3rem);
}

.features-grid,
.about-content,
.product-grid {
grid-template-columns: 1fr;
}

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

.footer-top {
flex-direction: column;
}

.footer-links ul {
justify-content: center;
flex-wrap: wrap;
}
}

@media (max-width: 480px) {
.section,
.cta-section {
padding: 2rem 0;
}

.auth-form {
padding: 1.5rem;
}
}