* {
  box-sizing: border-box;
}

:root {
  --red: #d90429;
  --dark-red: #9d0208;
  --black: #111;
  --white: #fff;
  --light-gray: #f5f5f5;
  --medium-gray: #ddd;
  --text-gray: #444;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--black);
}

/* ===============================
   TOP LOGO HEADER
   =============================== */

.logo-header {
  width: 100%;
  height: 360px;
  background-image: url("Logo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--black);
  border-bottom: 5px solid var(--red);
}

/* Tablet */
@media (max-width: 900px) {
  .logo-header {
    height: 300px;
    background-size: contain;
    background-position: center;
  }
}

/* Phone */
@media (max-width: 650px) {
  .logo-header {
    height: 220px;
    background-size: contain;
    background-position: center;
  }
}

/* ===============================
   INTRO / NAV SECTION
   =============================== */

.intro-section {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 25px 20px 35px;
  border-bottom: 5px solid var(--red);
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-bottom: 20px;
}

.top-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
}

.top-nav a:hover {
  color: var(--red);
}

.header-content h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
}

.header-content p {
  max-width: 800px;
  margin: 0 auto;
  color: #e8e8e8;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===============================
   BUTTONS
   =============================== */

.hero-btn,
button,
.order-btn,
.visit-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 13px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: 0.2s ease;
}

.hero-btn {
  padding: 16px 30px;
  border-radius: 10px;
}

.hero-btn:hover,
button:hover,
.order-btn:hover {
  background: var(--dark-red);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.secondary {
  background: var(--black);
  margin-left: 8px;
}

.secondary:hover {
  background: #333;
}

/* ===============================
   MAIN CONTAINER
   =============================== */

.container {
  width: 88%;
  max-width: 1200px;
  margin: 45px auto;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.loading-message {
  text-align: center;
  color: var(--text-gray);
  font-weight: bold;
}

/* ===============================
   PRODUCT GRID
   =============================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
  gap: 28px;
  justify-content: center;
}

.product-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--medium-gray);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.main-product-image {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: #f7f7f7;
  padding: 18px;
  border-bottom: 5px solid var(--red);
  cursor: zoom-in;
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  background: var(--white);
  border-bottom: 1px solid var(--medium-gray);
}

.thumbnail-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--medium-gray);
  cursor: pointer;
  flex: 0 0 auto;
  background: #f7f7f7;
}

.thumbnail-row img.active {
  border: 3px solid var(--red);
}

.product-content {
  padding: 20px;
}

.product-content h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.price {
  font-size: 1.55rem;
  color: var(--red);
  font-weight: bold;
  margin: 8px 0;
}

.description {
  color: var(--text-gray);
  line-height: 1.5;
  margin: 10px 0 0;
}

/* ===============================
   PRODUCT BUTTONS
   =============================== */

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 16px;
}

.visit-btn {
  background: var(--black);
  border: 2px solid var(--black);
}

.visit-btn:hover {
  background: var(--white);
  color: var(--black);
}

/* ===============================
   ORDER / VISIT SECTIONS
   =============================== */

.order-section,
.visit-section {
  margin-top: 60px;
  background: var(--light-gray);
  padding: 35px;
  border-radius: 16px;
  border-top: 6px solid var(--red);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.order-form {
  max-width: 560px;
  margin: 25px auto 0;
  text-align: left;
}

.order-form label,
.admin-card label {
  display: block;
  font-weight: bold;
  margin: 15px 0 7px;
}

.order-form input,
.order-form textarea,
.admin-card input,
.admin-card textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
}

.order-form input:focus,
.order-form textarea:focus,
.admin-card input:focus,
.admin-card textarea:focus {
  outline: 2px solid var(--red);
  border-color: var(--red);
}

.order-form textarea,
.admin-card textarea {
  min-height: 100px;
  resize: vertical;
}

.visit-card {
  margin: 25px auto 0;
  max-width: 520px;
  background: var(--white);
  padding: 24px;
  border-radius: 14px;
  border-left: 5px solid var(--red);
  text-align: left;
}

/* ===============================
   ADMIN PAGE
   =============================== */

.admin-container {
  width: 92%;
  max-width: 880px;
  margin: 35px auto;
}

.admin-card {
  background: var(--white);
  padding: 24px;
  margin-bottom: 25px;
  border-radius: 14px;
  border: 1px solid var(--medium-gray);
  border-top: 6px solid var(--red);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.hidden {
  display: none;
}

.error {
  color: var(--dark-red);
  font-weight: bold;
}

.success {
  color: #126b2f;
  font-weight: bold;
}

.small-text {
  color: var(--text-gray);
}

.admin-product-item {
  border-bottom: 1px solid var(--medium-gray);
  padding: 20px 0;
}

.admin-product-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.admin-product-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 330px;
}

.admin-picture-box {
  position: relative;
  width: 86px;
  height: 86px;
}

.admin-picture-box img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--red);
}

.remove-picture-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--black);
  color: var(--white);
  width: 27px;
  height: 27px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 27px;
}

.remove-picture-btn:hover {
  background: var(--dark-red);
}

.admin-product-info {
  flex: 1;
}

.admin-picture-controls {
  margin-top: 15px;
  padding: 15px;
  background: var(--light-gray);
  border-radius: 12px;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.delete-btn {
  background: var(--dark-red);
  padding: 9px 13px;
}

.delete-btn:hover {
  background: #6a040f;
}

/* ===============================
   IMAGE ZOOM MODAL
   =============================== */

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
}

.image-modal.hidden {
  display: none;
}

.image-modal img {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: 10px;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 25px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 48px;
  padding: 0;
}

.modal-close:hover {
  background: var(--dark-red);
}

.modal-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 3rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 50px;
  padding: 0;
  z-index: 10000;
}

.modal-arrow:hover {
  background: var(--dark-red);
}

.modal-prev {
  left: 25px;
}

.modal-next {
  right: 25px;
}

.modal-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  background: rgba(0, 0, 0, 0.65);
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 10000;
}

/* ===============================
   FOOTER
   =============================== */

footer {
  text-align: center;
  padding: 25px;
  background: var(--black);
  color: var(--white);
  margin-top: 50px;
  border-top: 5px solid var(--red);
}

/* ===============================
   MOBILE RESPONSIVE
   =============================== */

@media (max-width: 650px) {
  .intro-section {
    padding: 24px 18px 32px;
  }

  .top-nav {
    gap: 22px;
    margin-bottom: 18px;
  }

  .top-nav a {
    font-size: 1rem;
  }

  .header-content h1 {
    font-size: 2rem;
  }

  .header-content p {
    font-size: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .main-product-image {
    height: 300px;
  }

  .product-actions a,
  .product-actions button {
    width: 100%;
  }

  .admin-product-header {
    flex-direction: column;
  }

  .modal-arrow {
    width: 44px;
    height: 44px;
    font-size: 2.4rem;
    line-height: 40px;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }
}
.edit-product-box {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
}

.edit-product-box h4 {
  margin-bottom: 12px;
  color: #333;
}

.edit-product-box label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 600;
}

.edit-product-box input,
.edit-product-box textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
}

.edit-product-box textarea {
  min-height: 90px;
  resize: vertical;
}

.edit-product-box button {
  margin-top: 12px;
}
.contact-section {
  max-width: 900px;
  margin: 70px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.contact-section h2 {
  font-size: 38px;
  margin-bottom: 16px;
  color: #111;
}

.contact-section p {
  font-size: 20px;
  color: #444;
  line-height: 1.6;
}

.contact-box {
  margin-top: 28px;
  text-align: left;
  background: #f7f7f7;
  padding: 24px;
  border-radius: 18px;
}

.contact-box p {
  margin: 12px 0;
  font-size: 19px;
}

.product-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.order-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #e6002d;
  color: #ffffff;
  padding: 18px 24px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  font-size: 20px;
}

.order-btn:hover {
  background: #c90027;
}
