:root{
    --primary-color: #E5BC6F;
    --secondary-color: #000000;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f3e5;
    color: #333;
    line-height: 1.6;
    position: relative;
    z-index: 10;
}
.img1, .img2, .img3, .img4,.img5,.img6 {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: 0;
    pointer-events: none;
}
.img1 { bottom: 200px; right: 30px; }
.img2 { top: 900px; right: 50px; }
.img3 { top: 900px; left: 50px; width: 200px; height: 200px;}
.img4 { bottom: 220px; left: 50px;  width: 100px; height: 100px;}
.img5 { bottom: 800px; left: 50px;  width: 100px; height: 100px;}
.img6 { bottom: 800px; right: 50px;  width: 100px; height: 100px;}
.img1-bottom-right {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 120px;
    height: auto;
    z-index: 10;
}
.img-fixed-bottom-right {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 120px;
    height: auto;
    z-index: 1000;
    pointer-events: none;
}

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

header {
    background-color: var(--primary-color);
    color: #000000;
    text-align: center;
    padding: 30px 0;
    margin-bottom: 40px;
    border-bottom: 3px solid #000;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: #222;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.cake-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #E5BC6F;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
}

.cake-image {
    flex: 0 0 250px;
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cake-info {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.cake-name {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: #000;
    border-bottom: 2px solid #E5BC6F;
    padding-bottom: 6px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.cake-price {
    font-weight: bold;
    font-size: 1.25rem;
    color: #000;
    margin-bottom: 10px;
    margin-top: 0;
}

footer {
    background: #16232e;
    color: #fff;
    margin-top: 60px;
    padding: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.footer-info {
    color: #fff;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    max-width: 700px;
}
.footer-cert {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-cert img {
    max-width: 180px;
    height: auto;
}

.floating-buttons {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 9999;
    align-items: flex-end;
}

.floating-buttons a {
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    animation: pulse 1.5s infinite;
    transition: transform 0.2s;
}

.floating-buttons .fb-btn {
    background: #1877F3;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #1877f3;
    box-shadow: 0 0 0 8px rgba(24,119,243,0.15);
    display: flex;
    padding: 0;
    overflow: hidden;
}
.floating-buttons .fb-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}

.floating-buttons .phone-btn {
    background: #4CAF50;
    color: #fff;
    padding: 8px 8px 8px 8px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 0 0 8px rgba(76,175,80,0.12);
    border: none;
    gap: 8px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
.floating-buttons .phone-icon {
    background: #fff;
    color: #4CAF50;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 0;
    margin-left: 8px;
}
.floating-buttons .phone-text {
    color: #fff;
    font-weight: 500;
    margin-left: 0;
}

.floating-buttons .back-to-top-btn {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    margin-top: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    /* animation: pulse 1.5s infinite; */
}
.floating-buttons .back-to-top-btn:hover {
    background: #000;
    color: var(--primary-color);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(24,119,243,0.15), 0 0 0 8px rgba(76,175,80,0.12);}
    70% { box-shadow: 0 0 0 12px rgba(24,119,243,0.05), 0 0 0 20px rgba(76,175,80,0.04);}
    100% { box-shadow: 0 0 0 0 rgba(24,119,243,0.15), 0 0 0 8px rgba(76,175,80,0.12);}
}
@media (max-width: 1288px) {
    .img1, .img2, .img3, .img4,.img5,.img6 {
        display: none;
    }
}

/* Xóa hoặc ghi đè CSS cũ slider */
.product-slider, .favorite-slider, .slider-track {
  all: unset;
}

/* CSS chuẩn cho Swiper */
.product-swiper, .favorite-swiper {
  width: 100%;
  padding-bottom: 48px;
}
.product-swiper .swiper-slide,
.favorite-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}
.swiper-wrapper {
  display: flex;
}
.swiper-slide {
  flex-shrink: 0;
  width: auto;
}
.product-swiper .swiper-pagination,
.favorite-swiper .swiper-pagination {
  margin-top: 24px;
  position: relative;
}

/* Responsive width cho .cake-item */
@media (max-width: 1200px) {
  .cake-item { max-width: 270px; width: 100%; }
}
@media (max-width: 1024px) {
  .cake-item { max-width: 240px; width: 100%; }
}
@media (max-width: 900px) {
  .cake-item { max-width: 220px; width: 100%; }
}
@media (max-width: 768px) {
  .cake-item { max-width: 65vw; width: 65vw; }
}
@media (max-width: 600px) {
  .cake-item { max-width: 75vw; width: 75vw; }
}

.swiper-button-next, .swiper-button-prev {
  color: var(--primary-color) !important;
  fill: var(--primary-color) !important;
}
.swiper-pagination-bullet {
  background: var(--primary-color) !important;
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  opacity: 1;
}

.floating-buttons .zalo-btn {
    position: fixed;
    left: 24px;
    right: auto;
    bottom: 24px;
    z-index: 10000;
    background: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 0;
    overflow: hidden;
    /* Không animation cho Zalo */
}
.floating-buttons .zalo-btn img, .floating-buttons .zalo-btn svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}
@media (max-width: 600px) {
  .floating-buttons .zalo-btn {
    left: 12px;
    bottom: 24px;
    width: 56px;
    height: 56px;
  }
  .floating-buttons .zalo-btn img, .floating-buttons .zalo-btn svg {
    width: 100%;
    height: 100%;
  }
}

/* Thêm styles cho form liên hệ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #d4a95f;
}

/* Thêm styles cho loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Thêm styles cho thông báo */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Thêm styles cho breadcrumb */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* Thêm styles cho tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Thêm styles cho scrollbar tùy chỉnh */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4a95f;
}

.cake-size-price {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 1.2em;
}
