/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-brown: #3d2817;
  --dark-brown: #2a1a0e;
  --chocolate: #4a2c1a;
  --light-brown: #5d3a22;
  --accent-gold: #d4a574;
  --text-light: #f5e6d3;
  --text-dark: #1a1a1a;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-brown);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body > .main-header,
body > header.main-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body > .main-footer,
body > footer.main-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Page Load Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-content {
  animation: fadeIn 0.2s ease-out;
  position: relative;
  z-index: 1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Placeholder */
#header-placeholder {
  width: 100%;
  min-height: 80px;
  overflow: visible;
  display: block !important;
  visibility: visible !important;
}

#header-placeholder * {
  box-sizing: border-box;
}

/* Footer Placeholder */
#footer-placeholder {
  width: 100%;
  display: block !important;
  visibility: visible !important;
  overflow: visible;
}

/* Header Styles */
.main-header {
  background-color: var(--primary-brown);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto;
  min-height: 70px;
  overflow: visible;
}

header.main-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.main-header .container {
  position: relative;
  z-index: 1001;
  overflow: visible;
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-header .navbar {
  overflow: visible;
  display: block;
  width: 100%;
}

.navbar {
  padding: 1rem 0;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  flex-wrap: nowrap;
  overflow: visible;
}

.logo {
  text-decoration: none;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  visibility: visible;
  opacity: 1;
  z-index: 1002;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--text-light);
  display: block;
}

.logo-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: -5px;
  color: var(--text-light);
  display: block;
}

.logo-domain {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: -2px;
  color: var(--text-light);
  display: block;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  position: relative;
  left: auto;
  width: auto;
  height: auto;
  background-color: transparent;
  padding: 0;
  z-index: 1002;
  visibility: visible;
  opacity: 1;
  margin: 0;
  flex-direction: row;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  display: block;
  white-space: nowrap;
  visibility: visible;
  opacity: 1;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--accent-gold);
}

.nav-menu li {
  display: list-item;
  margin: 0;
  padding: 0;
  list-style: none;
  visibility: visible;
  opacity: 1;
}

.cart-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--chocolate);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cart-icon:hover {
  background-color: var(--light-brown);
}

.cart-count {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: bold;
  min-width: 24px;
  text-align: center;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 0;
  margin-bottom: 4rem;
  margin-top: 0;
  z-index: 1;
  clear: both;
  overflow: hidden;
}

/* Hero section with background only on homepage (has hero-wrapper) */
.hero-section:has(.hero-wrapper) {
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section:has(.hero-wrapper)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  transform: scale(1.1);
  z-index: -1;
}

.hero-section:has(.hero-wrapper)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(45, 28, 15, 0.4);
  z-index: -1;
}

/* Compact hero section for non-home pages (text-only) */
/* When hero-content is direct child of hero-section (without container/hero-wrapper) */
.hero-section > .hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero-section > .hero-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-section > .hero-content p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Compact padding for hero sections without hero-wrapper */
.hero-section:not(:has(.hero-wrapper)) {
  padding: 2rem 0;
  margin-bottom: 2rem;
  min-height: auto;
  height: auto;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-image-frame {
  border: 3px solid var(--accent-gold);
  border-radius: 10px;
  padding: 10px;
  background-color: var(--chocolate);
  box-shadow: 0 4px 15px var(--shadow);
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  min-height: 400px;
}

.hero-content-frame {
  border: 3px solid var(--accent-gold);
  border-radius: 10px;
  padding: 2.5rem;
  background-color: var(--chocolate);
  box-shadow: 0 4px 15px var(--shadow);
  animation: fadeIn 0.3s ease-out;
}

.hero-content {
  text-align: left;
  color: var(--text-light);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--text-dark);
}

.btn-primary:hover {
  background-color: #c49564;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
  background-color: var(--accent-gold);
  color: var(--text-dark);
}

/* Card Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  background-color: var(--chocolate);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px var(--shadow);
  transition: all 0.3s ease;
  animation: slideUp 0.25s ease-out backwards;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px var(--shadow);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-light);
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Sections */
.section {
  padding: 4rem 0;
  border-top: 2px solid rgba(212, 165, 116, 0.3);
  position: relative;
}

/* Add divider line after hero section */
.hero-section {
  border-bottom: 2px solid rgba(212, 165, 116, 0.3);
}

/* First section after hero doesn't need top border */
.hero-section + .section {
  border-top: none;
}

/* Add divider line before footer */
.main-footer {
  border-top: 2px solid rgba(212, 165, 116, 0.3);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--accent-gold);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent-gold);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  animation: slideUp 0.25s ease-out backwards;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Build Pizza Configurator */
.pizza-builder {
  background-color: var(--chocolate);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.builder-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.option-group {
  display: flex;
  flex-direction: column;
}

.option-group label {
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.option-group select,
.option-group input {
  padding: 0.8rem;
  border: 2px solid var(--primary-brown);
  border-radius: 5px;
  background-color: var(--dark-brown);
  color: var(--text-light);
  font-size: 1rem;
}

.option-group select:focus,
.option-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Price Display */
.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-gold);
  margin: 1rem 0;
}

/* Footer */
.main-footer {
  background-color: var(--primary-brown);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  position: relative;
  z-index: 100;
  overflow: visible;
}

footer.main-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.contact-item {
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-label {
  font-weight: 600;
  color: var(--accent-gold);
}

.footer-domain {
  font-size: 1rem;
  opacity: 0.9;
  color: var(--text-light);
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--chocolate);
  opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid #e5e5e5;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-content p {
  color: #333333;
  margin: 0;
  flex: 1;
  min-width: 250px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.btn-accept {
  background-color: #333333;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.btn-accept:hover {
  background-color: #555555;
}

.btn-learn-more {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--accent-gold);
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background-color: var(--chocolate);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--primary-brown);
}

table th {
  background-color: var(--primary-brown);
  color: var(--accent-gold);
  font-weight: 600;
}

table tr:hover {
  background-color: var(--light-brown);
}

/* Accordion */
.accordion {
  margin: 2rem 0;
}

.accordion-item {
  background-color: var(--chocolate);
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-brown);
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: var(--light-brown);
}

.accordion-header h4 {
  color: var(--accent-gold);
  margin: 0;
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

.accordion-body {
  padding: 1.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-gold);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding: 1.5rem;
  background-color: var(--chocolate);
  border-radius: 8px;
  animation: slideUp 0.25s ease-out backwards;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  top: 1.5rem;
}

.timeline-item:nth-child(odd)::before {
  right: -10px;
}

.timeline-item:nth-child(even)::before {
  left: -10px;
}

.timeline-year {
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--primary-brown);
  border-radius: 5px;
  background-color: var(--dark-brown);
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

.required {
  color: #ff6b6b;
}

.error-message {
  display: block;
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Checkout Page */
.checkout-page {
  background: linear-gradient(rgba(45, 28, 15, 0.95), rgba(45, 28, 15, 0.95)),
              url('images/hero.jpg') center/cover fixed;
  min-height: 100vh;
}

.checkout-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-summary {
  background-color: var(--chocolate);
  padding: 2rem;
  border-radius: 10px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--primary-brown);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.checkout-item-name {
  color: var(--text-light);
  font-weight: 500;
}

.checkout-item-qty {
  color: var(--text-light);
  opacity: 0.7;
  font-size: 0.9rem;
}

.checkout-item-price {
  color: var(--accent-gold);
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background-color: var(--primary-brown);
  margin: 1.5rem 0;
}

.checkout-form-container {
  background-color: var(--chocolate);
  padding: 2rem;
  border-radius: 10px;
}

.checkout-form {
  max-width: 100%;
}

/* Smooth page transitions */
.page-content {
  transition: opacity 0.3s ease;
}

/* Loading state for form submission */
.form-submitting {
  opacity: 0.7;
  pointer-events: none;
}

.form-submitting button {
  position: relative;
}

.form-submitting button::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid var(--text-dark);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.15s ease;
}

.modal-content {
  background-color: var(--chocolate);
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.15s ease;
}

.modal-close {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
  font-weight: 600;
}

/* Cart Styles */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--chocolate);
  border-radius: 8px;
  margin-bottom: 1rem;
  animation: slideUp 0.2s ease-out backwards;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.cart-item-price {
  color: var(--text-light);
  opacity: 0.9;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--dark-brown);
  padding: 0.3rem;
  border-radius: 5px;
}

.qty-btn {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.qty-btn:hover {
  background-color: #c49564;
}

.quantity-display {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--text-light);
}

.cart-item-total {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent-gold);
  min-width: 80px;
  text-align: right;
}

@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
  }

  .quantity-controls {
    order: 1;
  }

  .cart-item-total {
    order: 2;
    text-align: left;
  }

  .remove-btn {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }
}

.remove-btn {
  background-color: #8b4513;
  color: var(--text-light);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.remove-btn:hover {
  background-color: #a0522d;
}

.cart-summary {
  background-color: var(--chocolate);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--primary-brown);
}

.summary-row.total {
  border-bottom: none;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent-gold);
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  background: linear-gradient(90deg, var(--chocolate) 0%, var(--light-brown) 50%, var(--chocolate) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
  transition: all 0.3s ease;
}

/* Desktop Menu - Always Visible */
@media (min-width: 769px) {
  .nav-menu {
    display: flex !important;
    position: relative !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
  }
  
  .nav-menu li {
    display: list-item !important;
    visibility: visible !important;
  }
  
  .nav-menu a {
    color: var(--text-light) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed !important;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary-brown);
    flex-direction: column;
    padding: 2rem;
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 2px 0 10px var(--shadow);
  }

  .nav-menu.active {
    left: 0 !important;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image-frame {
    order: 1;
  }

  .hero-image-frame img {
    min-height: 300px;
  }

  .hero-content-frame {
    order: 2;
    padding: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 1.5rem !important;
  }

  .timeline-item::before {
    left: 10px !important;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-content p {
    text-align: center;
    font-size: 0.9rem;
  }

  .btn-accept {
    width: 100%;
    padding: 0.875rem 1.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .checkout-wrapper {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: relative;
    top: 0;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

  /* Mobile Table Styles */
  .table-container {
    overflow-x: visible;
    margin: 1.5rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
  }

  table {
    width: 100%;
    max-width: 100%;
    font-size: 0.75rem;
    display: table;
    margin: 0 auto;
  }

  table th,
  table td {
    padding: 0.5rem 0.4rem;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  table th {
    font-size: 0.7rem;
    padding: 0.6rem 0.4rem;
    font-weight: 600;
  }

  table td {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  table td strong {
    font-size: 0.75rem;
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {
  .table-container {
    margin: 1rem 0;
    padding: 0 5px;
  }

  table {
    font-size: 0.65rem;
  }

  table th,
  table td {
    padding: 0.4rem 0.3rem;
    font-size: 0.65rem;
  }

  table th {
    font-size: 0.65rem;
    padding: 0.5rem 0.3rem;
  }

  table td strong {
    font-size: 0.7rem;
  }
}

/* Additional Animations */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Smooth hover effects */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Stagger Animation Delays */
.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.06s; }
.card:nth-child(4) { animation-delay: 0.08s; }
.card:nth-child(5) { animation-delay: 0.1s; }
.card:nth-child(6) { animation-delay: 0.12s; }

.gallery-item:nth-child(1) { animation-delay: 0.02s; }
.gallery-item:nth-child(2) { animation-delay: 0.04s; }
.gallery-item:nth-child(3) { animation-delay: 0.06s; }
.gallery-item:nth-child(4) { animation-delay: 0.08s; }
.gallery-item:nth-child(5) { animation-delay: 0.1s; }

.timeline-item:nth-child(1) { animation-delay: 0.02s; }
.timeline-item:nth-child(2) { animation-delay: 0.04s; }
.timeline-item:nth-child(3) { animation-delay: 0.06s; }
.timeline-item:nth-child(4) { animation-delay: 0.08s; }
.timeline-item:nth-child(5) { animation-delay: 0.1s; }
.timeline-item:nth-child(6) { animation-delay: 0.12s; }

