/* Global Styles - Sweets Shop Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #d4a574;
  --secondary-color: #8b4513;
  --accent-color: #ff6b35;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #faf8f5;
  --bg-white: #ffffff;
  --border-color: #e5e5e5;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar Styles */
.navbar {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-color);
}

.navbar-container {
	max-width: 1200px;
	margin: 0 auto;
  padding: 0 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
  height: 80px;
}

.navbar-brand a {
  font-size: 28px;
	font-weight: bold;
  color: var(--secondary-color);
	text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand a::before {
  content: '🍰';
  font-size: 32px;
}

.navbar-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
  gap: 30px;
  align-items: center;
}

.navbar-menu li a {
  color: var(--text-dark);
	text-decoration: none;
  font-size: 16px;
	font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}

.navbar-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.navbar-menu li a:hover,
.navbar-menu li a.router-link-active {
  color: var(--primary-color);
}

.navbar-menu li a:hover::after,
.navbar-menu li a.router-link-active::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  margin-left: 20px;
}

.cart-icon a {
  font-size: 28px;
  text-decoration: none;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid white;
}

/* Slideshow Styles */
.slideshow-container {
	position: relative;
	width: 100%;
  height: 550px;
	overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.slideshow-wrapper {
	position: relative;
	width: 100%;
  height: 100%;
}

.slide {
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
	opacity: 1;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slide-content {
	position: absolute;
  bottom: 80px;
  left: 80px;
	color: white;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.slide-content h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 20px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.slide-link {
  display: inline-block;
  padding: 15px 35px;
  background: var(--accent-color);
	color: white;
	text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.slide-link:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.slide-prev,
.slide-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--secondary-color);
	border: none;
  width: 60px;
  height: 60px;
  font-size: 24px;
	cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.slide-prev:hover,
.slide-next:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.slide-prev {
  left: 30px;
}

.slide-next {
  right: 30px;
}

.slide-indicators {
	position: absolute;
  bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
  gap: 12px;
}

.indicator {
  width: 14px;
  height: 14px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.indicator.active {
	background: white;
  width: 18px;
  height: 18px;
  border-color: var(--accent-color);
}

/* Home Page Styles */
.frappe-site-home {
  min-height: 100vh;
}

.main-content {
  padding: 0;
}

.section-title {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--secondary-color);
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Video Styles */
.intro-video {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: 40px;
  display: block;
}

/* Categories Section */
.categories-section {
  padding: 80px 0;
  background: var(--bg-white);
}

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

.category-card {
  background: var(--bg-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.category-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
  position: relative;
}

.category-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
	right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-card h3 {
  padding: 20px;
  margin: 0;
  font-size: 20px;
  text-align: center;
  color: var(--text-dark);
  font-weight: 600;
}

/* Featured Products Section */
.featured-products-section {
  padding: 80px 0;
  background: var(--bg-light);
}

/* Product Card Styles */
.product-card {
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  background: var(--bg-white);
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.product-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}

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

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

.add-to-cart-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.product-card:hover .add-to-cart-btn {
  opacity: 1;
}

.add-to-cart-btn:hover {
  background: #e55a2b;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.product-info {
  padding: 20px;
}

.product-name {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.product-price {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--text-light);
  font-size: 20px;
}

.no-products {
  text-align: center;
  padding: 60px;
  color: var(--text-light);
  font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0 15px;
    height: 70px;
  }

  .navbar-brand a {
    font-size: 22px;
  }

  .navbar-menu {
    gap: 15px;
    font-size: 14px;
  }

  .slideshow-container {
    height: 400px;
  }

  .slide-content {
    bottom: 30px;
    left: 20px;
    right: 20px;
    max-width: 100%;
    padding: 20px;
  }

  .slide-content h2 {
    font-size: 28px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .slide-prev,
  .slide-next {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .slide-prev {
    left: 15px;
  }

  .slide-next {
    right: 15px;
  }

  .section-title {
    font-size: 28px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
  }

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

  .category-image {
    height: 150px;
  }

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