@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-cert {
        margin-top: 20px;
    }
}

.section-title {
    text-align: center;
    margin: 30px 0;
    font-size: 2rem;
    position: relative;
    color: #000;
}

.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background-color: #E5BC6F;
    margin: 10px auto;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 24px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Media Queries for Responsive Design */
@media only screen and (max-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 5px;
    }
}

@media only screen and (max-width: 992px) {
    .container {
        padding: 15px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cake-image {
        height: 220px;
    }
}

@media only screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .cake-name {
        font-size: 1.3rem;
    }
}

@media only screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin: 20px 0;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cake-image {
        height: 200px;
    }
    
    header {
        padding: 20px 10px;
        margin-bottom: 20px;
    }
    
    .cake-info {
        padding: 15px;
    }
    
    .cake-name {
        font-size: 1.2rem;
    }
    
    footer {
        margin-top: 40px;
        padding: 15px;
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 360px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .cake-image {
        height: 180px;
    }
}

/* Navigation Styles */
.nav-container {
    background-color: #000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: flex-start;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    content: '';
    display: block;
    width: 80%;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 10%;
    bottom: 2px;
    border-radius: 2px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    width: 250px;
}

.search-button {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Mobile Navigation */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    margin-left: auto;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background: #000;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    }
    .nav-links.active {
        max-height: 1000px;
        opacity: 1;
        display: flex;
    }
    .nav-content {
        justify-content: space-between;
    }
    .nav-links a:hover::after,
    .nav-links a.active::after {
        display: none !important;
    }
}

.product-slider {
    position: relative;
    margin-bottom: 40px;
}
.slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
.product-slider .cake-item {
    min-width: 23%;
    max-width: 23%;
    margin-right: 2%;
    box-sizing: border-box;
    display: none;
}
.product-slider .cake-item.active {
    display: block;
}
.slider-controls {
    display: flex;
    align-items: center;
    margin-top: 20px;
    justify-content: flex-end;
}
.slider-progress {
    flex: 1;
    height: 5px;
    background: #FFF3E0;
    border-radius: 3px;
    margin-right: 20px;
    position: relative;
}
.slider-progress-bar {
    position: absolute;
    top: 0;
    height: 100%;
    background: #FFC107;
    border-radius: 3px;
    transition: left 0.4s, width 0.4s;
}
.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #FFF3E0;
    color: #FFC107;
    font-size: 1.5rem;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.slider-btn:active {
    background: #FFE0B2;
}
.slider-btn:hover {
    background: #FFC107;
    color: #fff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.back-to-top-animated {
    animation: fadeInUp 0.5s cubic-bezier(0.4,0,0.2,1);
}
.banner-full {
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
}
.banner-full img {
    width: 100vw;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* CSS cơ bản cho Swiper */
.product-swiper, .favorite-swiper {
  width: 100%;
  padding-bottom: 30px;
}

.product-swiper .swiper-slide,
.favorite-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.swiper-slide {
  flex-shrink: 0;
  width: auto;
}

/* Responsive cho cake-item và swiper-slide đồng bộ */
@media (min-width: 1200px) {
  .product-swiper .swiper-slide,
  .favorite-swiper .swiper-slide {
    width: calc(25% - 15px) !important;
    max-width: calc(25% - 15px);
  }
  .cake-item { 
    max-width: 270px; 
    width: 100%; 
  }
}

@media (max-width: 1199px) and (min-width: 900px) {
  .product-swiper .swiper-slide,
  .favorite-swiper .swiper-slide {
    width: calc(33.333% - 15px) !important;
    max-width: calc(33.333% - 15px);
  }
  .cake-item { 
    max-width: 240px; 
    width: 100%; 
  }
}

@media (max-width: 899px) and (min-width: 600px) {
  .product-swiper .swiper-slide,
  .favorite-swiper .swiper-slide {
    width: calc(50% - 10px) !important;
    max-width: calc(50% - 10px);
  }
  .cake-item { 
    max-width: 220px; 
    width: 100%; 
  }
}

@media (max-width: 599px) {
  .product-swiper .swiper-slide,
  .favorite-swiper .swiper-slide {
    width: 100% !important;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }
  .cake-item { 
    max-width: 280px; 
    width: 90vw; 
    margin: 0 auto;
  }
}