* {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
:root {
  --bg: #d99872;
  --divider: #734d40;
  --text: #fff;
  font-family: Arial,Helvetica,sans-serif;
}
/* ================= BOOT ANIMATION ================= */
#boot-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #d99872;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  animation: fadeOut 1s ease-in-out 1s forwards;
}

#boot-animation .logo img {
  max-width: 200px;
  height: auto;
  border-radius: 20px;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* When boot animation finishes, show content */
#boot-animation.fade-out ~ * {
  visibility: visible;
  opacity: 1;
}

/* ================= BASE STYLES ================= */
body {
  background: #d99872;
  margin: 0;
  padding: 0;
  color: #fff;

}
.no-scroll {
  overflow: hidden;
}

/* ================= HEADER ================= */
header {
  background: #734d40;
  padding: 10px;
  display: flex;
  align-items: center;
  box-shadow: inset 1px 2px 3px rgba(0,0,0,0.3);
}

/* Logo */
.logo2-svg {
  width: 200px;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Hamburger Menu */
#nav-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

#nav-icon span {
  display: block;
  position: absolute;
  height: 2.35px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: 0.25s ease-in-out;
}

#nav-icon span:nth-child(1) {
  top: 0;
}
#nav-icon span:nth-child(2) {
  top: 8px;
}
#nav-icon span:nth-child(3) {
  top: 16px;
}

#nav-icon.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}
#nav-icon.open span:nth-child(2) {
  opacity: 0;
}
#nav-icon.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* PC Navigation */
.pc-nav {
  display: none;
}

.pc-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 500;
}

.pc-nav a:hover, .pc-nav a.active {
  background: #d99872;
  transform: translateY(-2px);
}

/* Icons */
.search-icon, .home-icon, .bag-icon {
  fill: #ffffff;
  transition: transform 0.3s;
}

.search-icon:hover, .home-icon:hover, .bag-icon:hover {
  transform: scale(1.1);
}

/* Bag Icon Fix - Make it outline */
.bag-icon {
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2 !important;
}

/* ================= CONTENT ================= */
.content {
  text-align: center;
  padding: 20px;
}

.container {
  width: 100%;
  padding: 20px;
}

.section {
  border-bottom: 1px solid #734d40;
  padding: 20px 0;
}

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

.section h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}
.section p {
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0;
}

/* ================= SIDEBAR ================= */
.sidebar {
  position: fixed;
  left: -250px;
  top: 0;
  height: 100%;
  width: 250px;
  background: #734d40;
  padding-top: 60px;
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: inset 0px 1px 2px 1px rgba(0,0,0,0.3);
}

.sidebar.active {
  left: 0;
}

.sidebar a {
  display: block;
  color: inherit;
  padding: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
  position: relative;
}

.sidebar a:hover {
  background: rgba(255,255,255,0.1);
  color: #ffd9b3;
  transform: translateX(15px);
  padding-left: 25px;
}

.location-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1001;
}

#locationsvg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.copyright {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #fff;
  padding: 10px;
}



/* ================= PRODUCT GRID ================= */
.menu-grid {
  display: grid;
  gap: 20px;
  padding: 20px;
  grid-template-columns: repeat(1, 1fr);
  /* Default: 1 column for mobile */
}

.cake-card {
  background: #734D40;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cake-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.cake-image {
  height: 250px;
  background: #ddd;
  border-radius: 10px 10px 0 0;
  object-fit: cover;
  width: 100%;
}

.cake-info {
  padding: 10px;
  background: #734d40;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cake-name {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.1em;
}
.cake-description {
  color: #d99872;
  font-size: 0.85em;
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}

/* ================= BUTTONS ================= */
.shop-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background: #734d40;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: inset 1px 2px 3px rgba(0,0,0,0.3);
}

.shop-button:hover {
  background: #d99872;
  color: #fff;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  opacity: 0;
  padding: 0 10px;
}

.cake-card:hover .button-container {
  max-height: 90px;
  opacity: 1;
  padding-bottom: 10px;
}

.order-btn, .view-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
}

.service-strip {
  max-width: 1100px;
  margin: 40px auto;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 28px 10px;
}
.service {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease,transform .6s ease;
}
.service.show {
  opacity: 1;
  transform: none;
}
.delay-1 {
  transition-delay: .1s
}
.delay-2 {
  transition-delay: .25s
}
.delay-3 {
  transition-delay: .4s
}
.service img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.service h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.service p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text);
}
.service a {
  color: var(--text);
  text-decoration: none;
}
.service a.underline {
  text-decoration: underline;
}
.divider {
  width: 1px;
  height: 55px;
  background: var(--divider);
}

@media(max-width:768px) {
  .service-strip {
    flex-direction: column;
    gap: 22px
  }
  .divider {
    width: 85%;
    height: 1px
  }
  .service.left {
    align-self: flex-start;
    margin-left: 12%;
    transform: translateX(40px)
  }
  .service.right {
    align-self: flex-end;
    margin-right: 12%;
    flex-direction: row-reverse;
    text-align: right;
    transform: translateX(-40px)
  }
  .service.show {
    transform: none
  }
}
.order-btn {
  background: #d99872;
  color: #fff;
}
.view-btn {
  background: #fff;
  color: #734d40;
  border: 1px solid #d99872;
}

.order-btn:hover, .view-btn:hover {
  transform: scale(1.02);
}
.order-btn:active, .view-btn:active {
  transform: scale(0.98);
}

/* ================= SEARCH ================= */
.input {
  border: none;
  outline: none;
  border-radius: 100px;
  padding: 1em;
  background: #734d40;
  box-shadow: inset 1px 2px 3px rgba(0,0,0,0.3);
  transition: 300ms;
  margin: 20px auto;
  width: 80%;
  display: block;
}

.input:focus {
  background: #734d40;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 13px 13px 100px #000, -13px -13px 100px #000;
}

.input::placeholder {
  color: #fff;
}

.suggestions-box {
  position: absolute;
  margin-top: 5px;
  background: #734d40;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  color: #fff;
  width: 90%;
  z-index: 10;
  display: none;
  left: 50%;
  transform: translateX(-50%);
}

.suggestions-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.suggestions-box li {
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #5d3e33;
  transition: background 0.3s;
}

.suggestions-box li:hover {
  background: #d99872;
  color: #fff;
}
.suggestions-box li:last-child {
  border-bottom: none;
}

/* ================= HELP SECTION ================= */
.help-section {
  background: #734d40;
  padding: 40px 20px;
  /* Increased padding for better look */
  color: #fff;
  margin-top: auto;
}
.help-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.help-box {
  margin-bottom: 20px;
}

#social-icons {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}

#social-icons a {
  display: inline-block;
  width: 43px;
  height: 43px;
}
#social-icons .social-icon {
  width: 100%;
  height: 100%;
  fill: #fff;
  transition: transform 0.2s;
}

#social-icons a:hover .social-icon {
  transform: scale(1.1);
}

/* ================= CAKE IMAGE ================= */
.cake-img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  opacity: 1;
  aspect-ratio: 1/1;
  background: #f8f8f8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ================= SWIPER CAROUSEL ================= */
.card-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 10px;
  overflow: hidden;
}

.card-list {
  display: flex;
  list-style: none;
  padding: 0;
}
.card-item {
  flex: 0 0 auto;
  width: 100%;
}

/* ================= RESPONSIVE DESIGN ================= */

/* Small Mobile (0px to 480px) - 1 column */
@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .logo2-svg {
    width: 150px;
  }
  header > div:last-child {
    gap: 10px;
  }
  .cake-img {
    width: 250px;
    height: 250px;
  }
}

/* Mobile (481px to 767px) - 2 columns */
@media (min-width: 481px) and (max-width: 767px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (768px to 1024px) - 3 columns */
@media (min-width: 768px) and (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .help-content {
    flex-direction: row;
  }
  .help-box {
    width: 48%;
    margin-bottom: 0;
  }
}

/* Desktop (1025px and above) - 4 columns */
@media (min-width: 1025px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Desktop Navigation */
  #nav-icon {
    display: none;
  }
  .pc-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: auto;
    margin-right: 30px;
  }

  header {
    padding: 15px 20px;
    justify-content: space-between;
  }
  .logo2-svg {
    position: relative;
    left: 0;
    transform: none;
    margin-right: auto;
  }
  .sidebar, .sidebar .location-icon {
    display: none;
  }
  header > div:last-child {
    margin-left: 0;
  }
  .help-content {
    flex-direction: row;
  }
  .help-box {
    width: 48%;
    margin-bottom: 0;
  }
}

/* Mobile Specific Fixes */
@media (max-width: 1024px) {
  .logo2-svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    z-index: 1001;
  }

  header > div:last-child {
    position: relative;
    z-index: 1002;
    margin-left: auto;
  }

  /* Sidebar Z-Index Fix */
  .sidebar.active {
    z-index: 10000 !important;
  }
  .sidebar.active ~ header *:not(#nav-icon) {
    z-index: 1 !important;
  }
  #nav-icon {
    z-index: 10001 !important;
  }
}

/* Utility */
.trending-heading {
  text-align: center;
  margin-bottom: 20px;
}

/* --- Hero 3D Slider Styles (Mobile Optimized) --- */
.swiper-hero {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 60px;
  /* Increased padding to protect the shop button */
  perspective: 1200px;
  overflow: hidden;
}

.swiper-hero .swiper-slide {
  background-position: center;
  background-size: cover;
  aspect-ratio: 1 / 1;
  border-radius: 15px;
  border: 2px solid rgba(255,255,255,0.2);
  overflow: hidden;
}

/* MOBILE ONLY: 1.5x Size Increase */
@media (max-width: 480px) {
  .swiper-hero .swiper-slide {
    /* Increasing from ~50% to ~75% width makes it look 1.5x larger */
    width: 75% !important;
    aspect-ratio: 1 / 1.1;
    /* Slightly taller for a more "premium" feel */
  }

  .swiper-hero {
    padding-bottom: 40px;
  }
}

.swiper-hero .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content .shop-button {
  position: relative;
  z-index: 100;
  margin-top: 10px;
}

/* 1. Ensure the container fills available space and centers content */
.err-container {
  flex: 1;
  /* This pushes the footer down */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* 2. Style the Error Code */
.err-code {
  font-size: clamp(3rem, 10vw, 6rem);
  /* Responsive font size */
  margin: 0;
  color: #734d40;
  /* Your dark brown divider color */
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 3. Style the Message */
.err-msg {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* About Page SVG Styling */
.container .section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px;
}

/* First section (About us) - centered layout */
.container .section:first-child {
  display: block;
  text-align: center;
}

.container .section:first-child h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Other sections - SVG on left, content on right */
.container .section:not(:first-child) {
  display: flex;
  align-items: flex-start;
}

/* SVG container styling */
.container .section:not(:first-child) svg,
.container .section:not(:first-child) img[src*=".svg"] {
  width: 50px;
  height: 50px;
  min-width: 50px;
  flex-shrink: 0;
  fill: white;
  stroke: white;
  margin-top: 5px;
}

/* Make all SVG paths white */
.container .section:not(:first-child) svg path,
.container .section:not(:first-child) svg polygon,
.container .section:not(:first-child) svg circle,
.container .section:not(:first-child) svg rect {
  fill: white !important;
  stroke: white !important;
}

/* Specific fix for delivery SVG (external image) */
.container .section:not(:first-child) img[src*=".svg"] {
  filter: brightness(0) invert(1);
}

/* Content area styling */
.container .section .section-content {
  flex: 1;
}

.container .section:not(:first-child) h2 {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: left;
}

.container .section:not(:first-child) p {
  text-align: left;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .container .section:not(:first-child) {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .container .section:not(:first-child) h2 {
    text-align: center;
  }

  .container .section:not(:first-child) p {
    text-align: center;
  }

  .container .section:not(:first-child) svg,
  .container .section:not(:first-child) img[src*=".svg"] {
    margin: 0 auto;
  }
}
