:root {
  --main-bg: #FFF7EC;
  --accent-green: #00A651;
  --accent-terra: #E07A3F;
  --accent-blue: #4EC5F1;
  --accent-yellow: #FFD75A;
  --accent-pistachio: #C5E6A0;
}

body {
  background-color: var(--main-bg);
  font-family: 'Lato', sans-serif;
}

.navbar {
  background-color: var(--main-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.search-form {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-form .form-control {
  border-radius: 20px;
  padding-right: 40px;
  border: 1px solid rgba(0,0,0,0.1);
  background-color: white;
}

.btn-search {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border: none;
  background: none;
  color: var(--accent-terra);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--accent-terra) !important;
}

.nav-link {
  color: #333 !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-green) !important;
  background-color: rgba(0, 166, 81, 0.05);
  border-radius: 4px;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

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

.cart-btn {
  background: var(--accent-green);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: 44px;
  position: relative;
}

.cart-btn:hover {
  background: #008a42;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 166, 81, 0.3);
}

.cart-btn .snipcart-items-count {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  min-width: 24px;
  text-align: center;
  display: inline-block;
}

.cart-btn .snipcart-items-count:empty {
  display: none;
}

.breadcrumb {
  background: transparent;
  padding: 1rem 0;
}

.footer {
  background-color: var(--main-bg);
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.95rem;
}

.footer-title {
  font-family: 'Playfair Display', serif;
  color: var(--accent-terra);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-contact {
  color: #666;
  font-style: normal;
  line-height: 1.8;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-divider {
  margin: 2rem 0;
  opacity: 0.1;
}

.copyright {
  color: #888;
  font-size: 0.9rem;
}


.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
  z-index: 1000;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  margin: 0;
}

.cookie-content .btn {
  background: var(--accent-green);
  border: none;
  white-space: nowrap;
}

/* Product page styles */
.product-title {
  font-family: 'Playfair Display', serif;
  color: var(--accent-terra);
  margin-bottom: 1.5rem;
}

.product-price {
  font-size: 2rem;
  color: var(--accent-green);
  font-weight: 600;
}

.product-image-container {
  margin-bottom: 2rem;
}

.product-description {
  line-height: 1.8;
  color: #444;
}

.product-features {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-features h3 {
  font-family: 'Playfair Display', serif;
  color: var(--accent-terra);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.product-features ul {
  list-style: none;
  padding-left: 0;
}

.product-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-features li:last-child {
  border-bottom: none;
}

.btn-primary {
  background-color: var(--accent-green);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: darken(var(--accent-green), 10%);
  transform: translateY(-2px);
}
.contact-info .card {
    transition: transform 0.3s ease;
    background: linear-gradient(145deg, #fff, var(--main-bg));
}

.contact-info .card:hover {
    transform: translateY(-5px);
}

.text-terra {
    color: var(--accent-terra);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.8rem;
    border-radius: 8px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 0.2rem rgba(0,166,81,0.25);
}

.contact-form .btn-primary {
    background: linear-gradient(145deg, var(--accent-green), darken(var(--accent-green), 10%));
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-pistachio);
    color: #333;
}

.accordion-button:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 0.2rem rgba(0,166,81,0.25);
}

/* Modern Carousel Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

#heroCarousel {
    border-radius: 0;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
}

.carousel-item {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 600px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: transform 0.8s ease, filter 0.8s ease;
}

.carousel-item.active img {
    transform: scale(1.05);
    filter: brightness(1);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    text-align: left;
    z-index: 10;
}

.carousel-caption h1,
.carousel-caption h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: white !important;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.carousel-caption p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.carousel-caption .btn-primary {
    background: var(--accent-green);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.4);
    animation: fadeInUp 1.2s ease;
    transition: all 0.3s ease;
}

.carousel-caption .btn-primary:hover {
    background: #008a42;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.5);
}

.carousel-indicators {
    bottom: 30px;
    z-index: 15;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    width: 32px;
    border-radius: 6px;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 15;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--accent-green);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
    filter: brightness(0) saturate(100%) invert(0);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 2rem 1.5rem;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
}

/* Responsive Images - Same Size */
.card-img-top,
.product-card img,
.category-card img,
.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-card img,
.category-card img {
    transition: transform 0.3s ease;
}

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

/* Blog and Events Images */
.blog .card-img-top,
.eventi .card-img-top {
    height: 250px;
}

/* Category Cards */
.category-card .card-img-top {
    height: 350px;
}

/* Product Cards in Shop */
.products-section .product-card img {
    height: 300px;
}

/* Featured Products */
.featured-products .product-card img {
    height: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-img-top,
    .product-card img,
    .category-card img,
    .card img {
        height: 250px;
    }
    
    .category-card .card-img-top {
        height: 250px;
    }
    
    .blog .card-img-top,
    .eventi .card-img-top {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .card-img-top,
    .product-card img,
    .category-card img,
    .card img {
        height: 200px;
    }
    
    .category-card .card-img-top {
        height: 200px;
    }
    
    .blog .card-img-top,
    .eventi .card-img-top {
        height: 180px;
    }
}
