*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #fffaf3;
  color: #3e2f2f;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

input,
textarea,
select,
button {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #a26769;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Playfair Display", serif;
  color: #4b3832;
  line-height: 1.2;
}

p {
  margin: 0;
}

ul {
  padding-left: 1.25rem;
}

.hidden {
  display: none;
}

.error-message {
  text-align: center;
  color: #8e5658;
  font-weight: 600;
  padding: 30px;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.success-text {
  color: #2f7a46;
}

.error-text {
  color: #a33d3d;
}

.eyebrow {
  color: #a26769;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

/* ========================================
   LAYOUT + HEADER
======================================== */

.site-header {
  background-color: #f3e2d4;
  padding: 18px 40px;
  border-bottom: 1px solid #e5d3c3;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: "EB Garamond", serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #6b4f3b;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: #a26769;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #a26769;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
/* ========================================
   BUTTONS
======================================== */

.btn {
  display: inline-block;
  border: none;
  background-color: #a26769;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  background-color: #8e5658;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(62, 47, 47, 0.1);
}

.btn-secondary {
  background: transparent;
  color: #a26769;
  border: 2px solid #a26769;
}

.btn-secondary:hover {
  background: #a26769;
  color: #ffffff;
}

.btn-disabled,
button:disabled {
  background: #d6c3b8;
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ========================================
   SHARED CARDS + INPUTS
======================================== */

.contact-info-card,
.contact-form,
.order-form,
.product-form,
.table-wrapper,
.feature-card,
.why-us-card {
  background: #ffffff;
  border: 1px solid #f0e4d8;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(62, 47, 47, 0.06);
}

.contact-info-card a {
  color: #a26769;
  text-decoration: underline;
  font-weight: 600;
}

.contact-info-card a:hover {
  color: #8e5658;
  text-decoration: underline;
}

.contact-form,
.order-form,
.product-form,
.contact-info-card,
.feature-card,
.why-us-card {
  padding: 24px;
}

.contact-form input,
.contact-form textarea,
.order-form input,
.order-form textarea,
.order-form select,
.product-form input,
.product-form textarea,
.login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcc8b8;
  border-radius: 10px;
  color: #3e2f2f;
  background: #fffdfb;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.contact-form input:hover,
.contact-form textarea:hover,
.order-form input:hover,
.order-form textarea:hover,
.order-form select:hover,
.product-form input:hover,
.product-form textarea:hover,
.login-form input:hover {
  background: #fffaf7;
}

.contact-form input:focus,
.contact-form textarea:focus,
.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus,
.product-form input:focus,
.product-form textarea:focus,
.login-form input:focus {
  outline: none;
  border-color: #a26769;
  box-shadow: 0 0 0 3px rgba(162, 103, 105, 0.12);
}

/* ========================================
   HOME PAGE
======================================== */

.home-hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  background: linear-gradient(to bottom, #fffaf3, #f7ede3);
  text-align: center;
}

.home-hero-content {
  max-width: 780px;
}

.home-hero h1,
.home-hero h2 {
  font-size: 3.2rem;
  color: #5a3e36;
  margin-bottom: 18px;
  line-height: 1.15;
}

.home-hero-text {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #6e574d;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.home-section {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 70px 20px;
}

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

.section-heading h2,
.section-heading h3 {
  font-size: 2rem;
  color: #5a3e36;
}

.feature-grid,
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card h3,
.feature-card h4,
.why-us-card h3,
.why-us-card h4 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.feature-card p,
.why-us-card p,
.about-preview-text {
  color: #6e574d;
  line-height: 1.7;
}

.about-preview {
  text-align: center;
}

.cta-section {
  text-align: center;
  padding: 70px 20px 90px;
  background: #f7ede3;
}

.cta-section h2,
.cta-section h3 {
  font-size: 2rem;
  color: #5a3e36;
  margin-bottom: 12px;
}

.cta-section p {
  color: #6e574d;
  margin-bottom: 24px;
}

/* ========================================
   MENU PAGE
======================================== */

.menu-page {
  padding: 50px 20px 80px;
  background: #fffaf3;
  min-height: 100vh;
}

.menu-hero {
  text-align: center;
  margin-bottom: 40px;
}

.menu-title {
  font-size: 2.5rem;
  color: #5a3e36;
  margin-bottom: 12px;
}

.menu-subtitle {
  max-width: 700px;
  margin: 0 auto;
  color: #6e574d;
  font-size: 1rem;
  line-height: 1.6;
}

.menu-sections {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.menu-category-section {
  margin-bottom: 50px;
}

.menu-category-title {
  font-size: 1.8rem;
  color: #6b4f3b;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ead8c8;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #f0e4d8;
  box-shadow: 0 6px 18px rgba(62, 47, 47, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(62, 47, 47, 0.12);
}

.product-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f4f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px 22px;
  text-align: left;
}

.product-category {
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  background: #f3e2d4;
  color: #7a5a4d;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.03em;
}

.product-name {
  font-size: 1.25rem;
  color: #4b3832;
  margin-bottom: 10px;
}

.product-description {
  color: #6e574d;
  font-size: 0.97rem;
  line-height: 1.55;
  margin-bottom: 16px;
  min-height: 88px;
}

.product-price {
  margin-top: auto;
  font-size: 1.15rem;
  font-weight: 700;
  color: #4b3832;
}

/* ========================================
   CONTACT PAGE
======================================== */

.contact-page {
  padding: 50px 20px 80px;
  background: #fffaf3;
  min-height: 100vh;
}

.contact-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.contact-hero h1,
.contact-hero h2 {
  font-size: 2.4rem;
  color: #5a3e36;
  margin-bottom: 12px;
}

.contact-hero p {
  color: #6e574d;
  line-height: 1.7;
}

.contact-layout {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
}

.contact-info-card h3,
.contact-form h3 {
  margin-bottom: 16px;
}

.contact-info-card p {
  color: #6e574d;
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-info-card a {
  font-weight: 600;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #4b3832;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 18px;
}

/* ========================================
   ORDER PAGE
======================================== */

.order-page {
  padding: 50px 20px 80px;
  background: #fffaf3;
  min-height: 100vh;
}

.order-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.order-hero h1,
.order-hero h2 {
  font-size: 2.4rem;
  color: #5a3e36;
  margin-bottom: 12px;
}

.order-hero p {
  color: #6e574d;
  line-height: 1.7;
}

.order-form-wrapper {
  width: min(800px, 100%);
  margin: 0 auto;
}

.order-form {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.order-form h2,
.order-form h3 {
  margin-bottom: 18px;
}

.order-form h4 {
  margin-bottom: 12px;
  color: #5a3e36;
}

.order-form label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #4b3832;
}

.order-form input,
.order-form textarea,
.order-form select {
  margin-bottom: 18px;
}

.delivery-fields {
  margin-bottom: 20px;
}

.delivery-fields-inner {
  background: #fffdfb;
  border: 1px solid #ead8c8;
  border-radius: 14px;
  padding: 18px;
}

.delivery-fields-inner label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #4b3832;
}

.delivery-fields-inner input {
  margin-bottom: 16px;
}

.address-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(90px, 120px) minmax(120px, 160px);
  gap: 16px;
  align-items: start;
}

.address-field {
  min-width: 0;
}

.address-field input {
  width: 100%;
  margin-bottom: 0;
}

.delivery-note {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 12px 14px;
  background: #fff4ec;
  border: 1px solid #e6cfc2;
  border-radius: 10px;
  color: #8e5658;
  font-size: 0.95rem;
  line-height: 1.5;
}

.order-item-builder {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.order-items-section {
  margin-bottom: 24px;
}

.order-items-list {
  background: #fffdfb;
  border: 1px solid #dcc8b8;
  border-radius: 12px;
  padding: 16px;
}

.empty-items-message {
  color: #6e574d;
  margin: 0;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0e4d8;
}

.order-item-row:last-child {
  border-bottom: none;
}

.item-qty {
  display: block;
  color: #6e574d;
  margin-top: 4px;
}

.remove-item-btn {
  background: transparent;
  border: 1px solid #a26769;
  color: #a26769;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.remove-item-btn:hover {
  background: #a26769;
  color: #ffffff;
}

.order-policy {
  margin: 24px 0;
  padding: 18px 18px 16px;
  background: #fff4ec;
  border: 1px solid #e6cfc2;
  border-radius: 14px;
}

.order-policy p {
  margin: 0 0 14px;
  color: #7a4f3e;
  font-size: 0.96rem;
  line-height: 1.6;
}

.policy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #4b3832;
  line-height: 1.5;
  cursor: pointer;
}

.policy-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #a26769;
  cursor: pointer;
}

.policy-checkbox:hover {
  opacity: 0.85;
}
.policy-container a {
  color: #a26769;
  text-decoration: underline;
  font-weight: 500;
}

.policy-container a:hover {
  color: #8e5658;
}

/* ========================================
   LOGIN PAGE
======================================== */

.login-page {
  padding: 60px 20px 80px;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(480px, 100%);
  background: #ffffff;
  border: 1px solid #f0e4d8;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 6px 18px rgba(62, 47, 47, 0.06);
}

.login-card h1,
.login-card h2 {
  margin-bottom: 12px;
  color: #5a3e36;
}

.login-card p {
  color: #6e574d;
  margin-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #4b3832;
}

.login-form input {
  margin-bottom: 18px;
}

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

.admin-page {
  padding: 50px 20px 80px;
  background: #fffaf3;
  min-height: 100vh;
}

.admin-hero {
  text-align: center;
  margin-bottom: 40px;
}

.admin-hero h1,
.admin-hero h2 {
  font-size: 2.4rem;
  color: #5a3e36;
  margin-bottom: 10px;
}

.admin-hero p {
  color: #6e574d;
}

.admin-section {
  width: min(1200px, 100%);
  margin: 0 auto 40px;
  padding-top: 10px;
}

.admin-section h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #f3e6da;
}

.admin-table th {
  background: #f7ede3;
  color: #4b3832;
  font-weight: 700;
}

.admin-table td {
  color: #6e574d;
}

.admin-table td div {
  margin-bottom: 6px;
}

.admin-table td div:last-child {
  margin-bottom: 0;
}

.admin-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.admin-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-product-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e6d7ca;
}

.admin-products-table-wrapper {
  margin-top: 18px;
}

/* ========================================
   PRODUCT FORM (ADMIN)
======================================== */

.product-form {
  margin-bottom: 24px;
}

.product-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.product-form-header h4 {
  margin: 0;
  font-size: 1.2rem;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.product-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #4b3832;
}

.product-form input,
.product-form textarea {
  margin-bottom: 0;
}

/* ========================================
   POLICY PAGES
======================================== */

.policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.policy-title {
  font-family: "EB Garamond", serif;
  font-size: 1.2rem;
  color: #6b4f3b;
  margin: 0;
}

.policy-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  color: #3e2f2f;
  line-height: 1.7;
}

.policy-container h2 {
  margin-top: 30px;
  color: #4b3832;
}

.policy-container p,
.policy-container li {
  font-size: 0.95rem;
}

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

.site-footer {
  background: #f3e2d4;
  color: #6e574d;
  padding: 40px 20px 20px;
  margin-top: 60px;
  text-align: center;
}

.footer-content {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer-column h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #4b3832;
}

.footer-column p {
  color: #6e574d;
  line-height: 1.6;
  margin: 4px 0;
}

.footer-bottom {
  text-align: center;
  color: #7a5a4d;
  margin-top: 24px;
  font-size: 0.95rem;
}

/* ========================================
   PAGE ANIMATION
======================================== */

.order-page,
.contact-page,
.login-page,
.admin-page {
  animation: fadeInPage 0.35s ease;
}

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

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

@media (max-width: 768px) {
  .site-header {
    padding: 16px 20px;
  }

  .navbar {
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-hero h1,
  .home-hero h2 {
    font-size: 2.3rem;
  }

  .section-heading h2,
  .section-heading h3,
  .cta-section h2,
  .cta-section h3,
  .contact-hero h1,
  .contact-hero h2,
  .order-hero h1,
  .order-hero h2,
  .admin-hero h1,
  .admin-hero h2 {
    font-size: 1.8rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

  .policy-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .order-item-row {
    flex-direction: column;
    align-items: flex-start;
  }
}