﻿/* ==== Tổng thể Layout ==== */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #fff8f0;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
}

/* ==== Header ==== */
header {
  background-color: #fff8e1;
  color: #b71c1c;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 4px solid #ff7043;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 50px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
}

.tagline {
  font-size: 1rem;
  font-style: italic;
  color: #8d6e63;
}

/* ==== Phần hiển thị trạng thái mở cửa ==== */
.open-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.open {
  color: #2e7d32;
}

.closed {
  color: #c62828;
}

/* ==== Phần iframe PDF ==== */
.pdf-container {
  flex: 1;
  width: 100%;
  height: calc(100vh - 160px); /* Tùy chỉnh theo header/footer */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

/* ==== Link fallback nếu không hiện được iframe ==== */
.fallback-link {
  text-align: center;
  margin: 1rem;
  font-size: 1rem;
  background-color: #fff3e0;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  color: #444;
}

.fallback-link a {
  text-decoration: none;
  color: #d84315;
  font-weight: 600;
}

.fallback-link a:hover {
  text-decoration: underline;
}

/* ==== Nút gọi khi trong giờ mở cửa ==== */
.call-button {
  display: flex;
  justify-content: center;
  margin: 1rem 0 2rem;
}

.call-button a {
  background-color: #ff7043;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s;
}

.call-button a:hover {
  background-color: #e64a19;
}

/* ==== Lời nhắn khi gọi ngoài giờ ==== */
.call-info {
  text-align: center;
  margin: 1.5rem auto 2rem;
  font-size: 1.05rem;
  color: #b71c1c;
  background-color: #fff3e0;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  max-width: 600px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ==== Lời nhắn riêng cho ngày nghỉ ==== */
.closing-info {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 1rem;
  font-style: italic;
  color: #5d4037;
}

/* ==== Footer ==== */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  padding: 1rem;
  background-color: #fbe9e7;
}

/* ==== Footer tùy chỉnh (nếu dùng div.footer) ==== */
.footer {
  background-color: #f8f6f2;
  padding: 20px 10px;
  text-align: center;
  font-size: 14px;
  color: #333;
  border-top: 1px solid #ddd;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  color: #b33c00;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: #666;
  font-size: 13px;
}

/* ==== Nút gọi nổi góc dưới màn hình mobile ==== */
.floating-call {
  display: none;
}

@media (max-width: 768px) {
  .floating-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff7043;
    border-radius: 30px;
    padding: 10px 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: floatIn 0.4s ease;
  }

  .floating-call a {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .call-icon {
    font-size: 24px;
  }

  .call-text {
    font-size: 16px;
  }

  .floating-call:hover {
    background-color: #e64a19;
  }

  @keyframes floatIn {
    from {
      transform: translateY(40px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Giảm size cho mobile */
  .logo-text {
    font-size: 1.3rem;
  }

  .pdf-container iframe {
    min-height: 600px;
    height: 85vh;
    max-height: 1000px;
  }

  .fallback-link {
    font-size: 0.95rem;
  }

  .call-button a {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }

  .call-info {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
}

.pickup-discount {
    background-color: #fffae6;
    color: #333;
    padding: 10px;
    margin: 15px 0;
    border-left: 4px solid #ff9800;
    font-size: 1.1em;
}

.pickup-discount .highlight {
    color: #d32f2f;
    font-weight: bold;
}

