:root {
  --success-color: #4CAF50;
  --link-color: #2196F3;
  --error-color: #F44336;
  --primary-color: #ff85a2;
  --secondary: #ff6f61;
  --text-color: #3a3a3a;
  --background-color: #f8f9fa;
  --main-border-color: #ddd;
  --card-background: #1d1d1d;
}

.dark-mode {
  --primary-color: #ff85a2;
  --text-color: #ffffff;
  --background-color: #0d1117;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

header {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

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

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

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease-in;
}

nav ul li a:hover {
  transition: all 0.3s ease-out;
  color: var(--link-color);
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://t4.ftcdn.net/jpg/03/08/40/43/360_F_308404381_LqyMIXDPOR6Ut1TqE2cJRQdxomGsQegc.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  width: 100%;
  transition: all 0.3s ease-in;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transition: all 0.3s ease-out;
  background-color: var(--secondary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

section {
  padding: 1rem;
  max-width: 97%;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-color);
}

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

.cake-card {
  background-color: var(--card-background);
  color: var(--text-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cake-card img {
  width: 100%;
  height: 200px;
  object-fit: fill;
}

@media (max-width: 775px) {
  .cake-card img {
    height: 150px;
    object-fit: contain;
  }
}

@media (max-width: 435px) {
  .cake-card img {
    height: 150px;
    object-fit: unset;
  }
}

.cake-card h3 {
  padding: 1rem 1rem 0;
}

.cake-card p {
  padding: 0 1rem;
  color: var(--text-color);
  font-size: 0.9rem;
}

.add-to-cart-form {
  display: block;
  margin-top: auto;
  padding: 0.3rem;
}

.price {
  display: block;
  padding: 0 1rem 1rem;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.cake-card .btn {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.order-form {
  border: solid 2px var(--main-border-color);
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
  border: solid 2px var(--main-border-color);
  padding: 2rem;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #3957df;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 100px;
}

.cake-selected {
  text-align: center;
  margin-bottom: 2rem;
}

.cake-selected img {
  max-width: 200px;
  border-radius: 10px;
}

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

.about-content img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background-color: var(--background-color);
  border: solid 2px var(--main-border-color);
  color: var(--text-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

footer {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

footer a {
  color: var(--link-color);
  text-decoration: none;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul {
    margin-top: 1rem;
  }

  nav ul li {
    margin-left: 1rem;
    margin-right: 1rem;
  }

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

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

  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }
}



.cart {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.cart h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

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

.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--main-border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--background-color);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.item-details {
  flex: 1;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.item-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.remove-item {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 0.25rem;
}

.remove-item:hover {
  color: var(--error-color);
}

.item-description {
  color: #666;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
}

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

.quantity-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in;
  justify-content: center;
}

.quantity-btn:hover {
  transition: all 0.3s ease-out;
  color: var(--primary-color);
  background: #f5f5f5;
}

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

.item-total {
  font-weight: bold;
  text-align: right;
  margin-top: 0.5rem;
}

.cart-summary {
  background: var(--background-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid var(--main-border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.summary-row.total {
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.checkout-btn {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.continue-shopping {
  display: block;
  text-align: center;
  color: var(--primary-color);
}

.empty-cart {
  text-align: center;
  padding: 3rem 0;
}

.empty-cart-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.cart-count {
  background-color: white;
  color: #ff85a2;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: 5px;
}

.empty-cart h3 {
  margin-bottom: 0.5rem;
}

.empty-cart p {
  color: #666;
  margin-bottom: 1.5rem;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1rem;
  border-radius: 4px;
  color: white;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  background: var(--success-color);
}

.toast.error {
  background: var(--error-color);
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: 100px;
    object-fit: unset;
  }
}















/* Order Form Styles */
.order-form {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 2rem;
}

.order-summary {
  background-color: var(--background-color);
  padding: 1.5rem;
  border-radius: 8px;
}

.order-summary h3 {
  margin-top: 0;
  color: var(--primary);
}

.order-summary ul {
  list-style: none;
  padding: 0;
}

.order-summary li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.order-summary li img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.order-summary li h4 {
  margin: 0 0 0.5rem 0;
}

.order-total {
  text-align: right;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1rem;
}

.single-order {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.single-order img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.single-order .price {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary);
}
.order-form {
  grid-template-columns: 1fr;
}

.single-order {
  flex-direction: column;
}

@media (max-width: 768px) {
  .single-order img {
    width: 100%;
    height: auto;
  }
}