/* Base Styles */
:root {
  --primary-color: #e63946;
  --primary-dark: #c1121f;
  --secondary-color: #457b9d;
  --light-color: #f1faee;
  --dark-color: #1d3557;
  --success-color: #2a9d8f;
  --warning-color: #e9c46a;
  --danger-color: #e63946;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --text-color: #333;
  --border-radius: 4px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

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

p {
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-primary);
}

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

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

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

.secondary-btn:hover {
  background-color: #3d6e8e;
  color: white;
}

.full-width {
  width: 100%;
}

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

.hidden {
  display: none;
}

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

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

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

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  font-weight: 600;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 5px;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after,
nav ul li a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.cart-link {
  display: flex;
  align-items: center;
}

#cart-count {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  margin-left: 5px;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/logo.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 8rem 1rem;
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Advantages Section */
.advantages {
  padding: 4rem 1rem;
  background-color: var(--light-color);
}

.advantages h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.advantage-item {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.cta {
  text-align: center;
}

/* About Products Section */
.about-products {
  padding: 4rem 1rem;
}

.about-products h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.about-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Menu Section */
.menu {
  padding: 4rem 1rem;
  background-color: #fff;
}

.menu h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

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

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.description {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.product-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Product card small variant for related products */
.product-card.small {
  display: flex;
  flex-direction: column;
}

.product-card.small .product-image {
  height: 150px;
}

.product-card.small .product-info {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card.small .product-actions {
  margin-top: auto;
}

.products-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 1rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--container-width);
  margin: 0 auto 2rem;
}

.footer-column h4 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

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

.footer-column p, 
.footer-column li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

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

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

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1rem;
  z-index: 1000;
  display: none;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-more-info {
  font-size: 0.9rem;
}

.cookie-more-info a {
  color: var(--light-color);
  text-decoration: underline;
}

/* Product Detail Page */
.product-detail {
  padding: 3rem 1rem;
}

.breadcrumb {
  margin-bottom: 2rem;
  color: var(--gray-color);
}

.breadcrumb a {
  color: var(--gray-color);
}

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

.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.product-gallery {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.rating {
  display: flex;
  align-items: center;
}

.stars {
  color: #ffc107;
  display: flex;
  margin-right: 0.5rem;
}

.rating-text {
  color: var(--gray-color);
  font-size: 0.9rem;
}

.product-info .description {
  margin-bottom: 2rem;
}

.product-info .description ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.quantity-selector label {
  margin-right: 1rem;
}

.quantity-buttons {
  display: flex;
  align-items: center;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.quantity-decrease,
.quantity-increase {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
}

.quantity-selector input {
  width: 50px;
  height: 36px;
  text-align: center;
  border: none;
  -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-tabs {
  margin-bottom: 3rem;
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-color);
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  margin-bottom: 1.5rem;
}

.tab-panel ul, 
.tab-panel ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.tab-panel ul li, 
.tab-panel ol li {
  margin-bottom: 0.5rem;
}

.review {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
}

.review:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.reviewer {
  font-weight: 600;
  margin-right: 1rem;
}

.review-date {
  color: var(--gray-color);
  margin-left: auto;
  font-size: 0.9rem;
}

.related-products h2 {
  margin-bottom: 2rem;
}

/* Cart Page */
.cart-section {
  padding: 3rem 1rem;
}

.cart-section h1 {
  margin-bottom: 2rem;
}

.cart-items {
  margin-bottom: 2rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: 1rem;
  background-color: var(--light-gray);
  font-weight: 600;
}

.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.product-info {
  display: flex;
  align-items: center;
}

.product-info img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-right: 1rem;
}

.product-remove button {
  background: none;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
}

.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.cart-summary {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  align-self: start;
}

.cart-summary h3 {
  margin-bottom: 1.5rem;
}

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

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

.promo-code {
  display: flex;
  margin-bottom: 1.5rem;
}

.promo-code input {
  flex-grow: 1;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border-right: none;
}

.promo-code button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--secondary-color);
}

/* Checkout Page */
.checkout-section {
  padding: 3rem 1rem;
}

.checkout-section h1 {
  margin-bottom: 2rem;
}

.checkout-form {
  max-width: 800px;
  margin: 0 auto;
}

.checkout-form h2 {
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  width: calc(50% - 0.5rem);
  display: inline-block;
}

.form-group:nth-child(odd) {
  margin-right: 1rem;
}

.full-width {
  width: 100%;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, 
textarea, 
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
}

textarea {
  resize: vertical;
}

.order-items {
  margin-bottom: 2rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-info {
  display: flex;
  align-items: center;
}

.order-item-info img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-right: 1rem;
}

.order-totals {
  margin-bottom: 2rem;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.order-total-row.total {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-gray);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Success Page */
.success-section {
  padding: 4rem 1rem;
  text-align: center;
}

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

.success-icon {
  color: var(--success-color);
  margin-bottom: 2rem;
}

.success-details {
  margin-top: 3rem;
  text-align: left;
}

.success-steps {
  margin-top: 2rem;
}

.success-step {
  display: flex;
  margin-bottom: 1.5rem;
}

.step-icon {
  margin-right: 1.5rem;
  color: var(--primary-color);
}

.success-actions {
  margin-top: 3rem;
}

/* Contact Page */
.page-header {
  background-color: var(--light-color);
  padding: 4rem 1rem;
  text-align: center;
}

.contact-section {
  padding: 4rem 1rem;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.contact-info, .contact-form {
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.info-icon {
  margin-right: 1rem;
  color: var(--primary-color);
}

.social-links {
  margin-top: 2rem;
}

.map-section {
  padding: 2rem 1rem 4rem;
}

.map-container {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* About Page */
.about-story {
  padding: 4rem 1rem;
}

.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-mission {
  padding: 4rem 1rem;
  background-color: var(--light-color);
}

.mission-content h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.mission-item {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.mission-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.team-section {
  padding: 4rem 1rem;
}

.team-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--gray-color);
}

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

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

.team-member img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--light-gray);
  color: var(--dark-color);
  transition: var(--transition);
}

.member-social a:hover {
  background-color: var(--primary-color);
  color: white;
}

.achievements-section {
  padding: 4rem 1rem;
  background-color: var(--light-color);
  text-align: center;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.achievement-item {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.achievement-icon {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.testimonials-section {
  padding: 4rem 1rem;
  text-align: center;
}

.testimonials-slider {
  max-width: 800px;
  margin: 3rem auto 0;
}

.testimonial {
  display: none;
}

.testimonial-content {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  position: relative;
  margin-bottom: 2rem;
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: var(--light-color);
}

.testimonial-content p {
  font-style: italic;
}

.testimonial-author h4 {
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  color: var(--gray-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 1rem 0.5rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .product-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cart-content {
    grid-template-columns: 1fr;
  }
  
  .form-group {
    width: 100%;
  }
  
  .form-group:nth-child(odd) {
    margin-right: 0;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .tabs-header {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex-grow: 1;
    padding: 1rem 0.5rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .advantage-item, 
  .mission-item, 
  .achievement-item {
    padding: 1.5rem;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .btn {
    width: 100%;
  }
  
  .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .order-item-price {
    align-self: flex-end;
  }
}
