:root {
  --primary-color: #2c3e50;
  --secondary-color: #27ae60;
  --accent-color: #e67e22;
  --text-color: #333;
  --bg-color: #f9f9f9;
  --white: #ffffff;
  --gray-light: #ecf0f1;
  --gray: #95a5a6;
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #219150;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Header & Nav */
header {
  height: var(--header-height);
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  height: 60px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-counter {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-color);
  color: var(--white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger-menu div {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Products Grid */
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image {
  height: 250px;
  background-color: #f0f0f0;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.product-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

/* Cart Page */
.cart-page {
  padding: 60px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-light);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
}

.cart-item-details h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  cursor: pointer;
}

.cart-item-quantity input {
  width: 50px;
  text-align: center;
  padding: 5px;
  border: 1px solid var(--gray-light);
  margin: 0 5px;
}

.cart-summary {
  margin-top: 40px;
  padding: 30px;
  background: var(--white);
  border-radius: 8px;
  max-width: 500px;
  margin-left: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.4rem;
  border-top: 2px solid var(--gray-light);
  padding-top: 15px;
  margin-top: 15px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input, 
.form-group textarea, 
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  font-family: inherit;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: var(--gray);
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 2000;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Notifications */
#cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateX(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3000;
}

#cart-notification.show {
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .burger-menu {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }

  .cart-item-quantity, 
  .cart-item-total, 
  .cart-item-remove {
    grid-column: 2;
  }
}

.overflow-hidden {
  overflow: hidden;
}
