/* Base Styles */
:root {
  --primary-color: #e53935;
  --secondary-color: #4caf50;
  --accent-color: #ff9800;
  --dark-color: #333;
  --light-color: #f4f4f4;
  --white: #ffffff;
  --gray: #777;
  --light-gray: #ddd;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

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

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

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

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 16px;
}

.btn:hover {
  background-color: #c62828;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: #f9f9f9;
}

.btn-text {
  background: none;
  color: var(--dark-color);
  border: none;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--primary-color);
}

.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect:hover {
  box-shadow: 0 0 15px var(--primary-color);
}

.glow-effect:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  opacity: 0;
  transition: 0.5s;
}

.glow-effect:hover:after {
  opacity: 1;
  transform: rotate(45deg) translate(-50%, 50%);
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 60px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 25px;
}

nav a {
  font-weight: 600;
  position: relative;
}

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

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

nav a.active:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.cart-icon {
  position: relative;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/random/1600x900/?pizza') no-repeat center center/cover;
  height: 600px;
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Advantages Section */
.advantages {
  padding: 80px 0;
  background-color: var(--white);
}

.advantages h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--dark-color);
}

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

.advantage-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  background-color: var(--light-color);
}

.advantage-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.advantage-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.advantage-item h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.cta {
  text-align: center;
  margin-top: 30px;
}

/* About Products Section */
.about-products {
  background-color: var(--light-color);
  padding: 80px 0;
}

.about-products h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.about-products-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.about-products-content p {
  margin-bottom: 20px;
}

.about-products-content h3 {
  margin: 30px 0 15px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Products Section */
.products {
  padding: 80px 0;
  background-color: var(--white);
}

.products h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
}

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

.product-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--white);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.product-link {
  display: block;
  padding: 20px 20px 10px;
}

.product-link img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

.product-link h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.price {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.description {
  color: var(--gray);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.product-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.product-actions button {
  flex: 1;
  padding: 10px;
  font-size: 0.95rem;
}

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

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-logo {
  flex: 1 1 300px;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 80px;
  margin-bottom: 15px;
}

.footer-links {
  flex: 2 1 600px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 200px;
  margin-bottom: 30px;
}

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

.footer-column h4:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.footer-column a {
  color: var(--light-gray);
}

.footer-column a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

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

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.cookie-content p {
  flex: 1 1 60%;
}

.cookie-buttons {
  flex: 1 1 35%;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Notification */
.notification {
  position: fixed;
  top: -100px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: top 0.5s ease;
  z-index: 1000;
}

.notification.show {
  top: 20px;
}

/* Product Detail Page */
.product-detail {
  padding: 60px 0;
  background-color: var(--white);
}

.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.product-info h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.product-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.product-description {
  margin-bottom: 30px;
}

.product-meta {
  background-color: var(--light-color);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.product-meta h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.meta-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.meta-icon {
  margin-right: 10px;
  color: var(--primary-color);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.quantity-selector label {
  font-weight: 600;
}

.quantity-controls {
  display: flex;
  align-items: center;
}

.quantity-btn {
  background-color: var(--light-color);
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

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

#quantity {
  width: 50px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--light-gray);
  font-size: 1rem;
}

.product-actions-detail {
  display: flex;
  gap: 15px;
}

.product-actions-detail .btn {
  flex: 1;
}

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

.cart-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.cart-empty {
  text-align: center;
  padding: 40px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.cart-empty p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cart-items {
  margin-bottom: 30px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}

.cart-item-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

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

.cart-item-price {
  color: var(--primary-color);
  font-weight: 600;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.remove-item {
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.remove-item:hover {
  color: #c62828;
}

.cart-summary {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.2rem;
  border-bottom: none;
  padding-top: 20px;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 20px;
}

.checkout-actions .btn {
  flex: 1;
}

/* Checkout Page */
.checkout-page {
  padding: 60px 0;
}

.checkout-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.checkout-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.checkout-form h2 {
  margin-bottom: 30px;
}

.form-row {
  margin-bottom: 20px;
}

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

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}

.form-group {
  display: flex;
  gap: 20px;
}

.form-group .form-row {
  flex: 1;
}

.checkout-summary {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  align-self: start;
}

.checkout-summary h3 {
  margin-bottom: 20px;
}

.checkout-items {
  margin-bottom: 20px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
}

.checkout-item-left {
  display: flex;
  align-items: center;
}

.checkout-item-qty {
  background-color: var(--light-gray);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-right: 10px;
}

/* Contact Page */
.contact-page {
  padding: 60px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-info h2 {
  margin-bottom: 30px;
  font-size: 2rem;
}

.contact-info-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  margin-right: 15px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-map {
  height: 300px;
  background-color: var(--light-gray);
  margin-top: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 30px;
  font-size: 2rem;
}

/* About Page */
.about-page {
  padding: 60px 0;
}

.about-hero {
  text-align: center;
  margin-bottom: 60px;
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.about-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: center;
}

.about-story-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

.about-values {
  background-color: var(--white);
  padding: 60px 0;
  margin-bottom: 80px;
}

.about-values h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.value-card {
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background-color: var(--light-color);
}

.value-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.team-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  text-align: center;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member-info {
  padding: 20px;
}

.team-member-info h3 {
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.team-member-info p {
  margin-bottom: 10px;
}

.team-member-info p:nth-child(3) {
  color: var(--gray);
  font-size: 0.9rem;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.team-socials a {
  color: var(--gray);
  transition: var(--transition);
}

.team-socials a:hover {
  color: var(--primary-color);
}

/* Success Page */
.success-page {
  padding: 80px 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  font-size: 5rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.success-page h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.success-page p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .product-container {
    grid-template-columns: 1fr;
  }

  .checkout-container {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav ul {
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-areas: 
      "image details"
      "image price"
      "quantity remove";
  }
  
  .cart-item-image {
    grid-area: image;
  }
  
  .cart-item-details {
    grid-area: details;
  }
  
  .cart-item-price {
    grid-area: price;
  }
  
  .cart-item-quantity {
    grid-area: quantity;
    margin-top: 10px;
  }
  
  .remove-item {
    grid-area: remove;
    justify-self: end;
    align-self: center;
  }
  
  .form-group {
    flex-direction: column;
    gap: 0;
  }
  
  .checkout-actions {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero {
    height: 450px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
}
