@font-face {
  font-family: Gesco;
  src: url(../1FTV-HF-Gesco-id0oy5.ttf);
}

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-text: #693C0E;
  --color-muted: #5c5c5c;
  --color-black: #4a2807;
  --color-accent: #F4A300;
  --color-accent-hover: #ffaa00;
  --color-border: #e8e4df;
  --color-error: #b33;
  --color-red-primary: #f01d1d ;
  --color-red-secondary: #ba1616 ;
  --color-blue: #4356ff;
  --color-yellow: #cbb107;
  --color-success: #2b6f50;
  --font-sans: "Afacad", sans-serif;
  --font-display: Gesco, 'Times New Roman', serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --max-width: 1200px;
}


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

html {
  scroll-behavior: smooth;
}

body {
  background: transparent url("../images/pattern.png") repeat top left / 50%;
  font-family: var(--font-sans);
  /* background: var(--color-bg); */
  color: var(--color-text);
  font-style: normal;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dropdown {
  position: absolute;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  min-width: 130px;
  border-radius: 12px;
  padding: 8px 10px;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.yellow {
  width: 100%;
  height: 36px;
  background-color: var(--color-accent);
  border-bottom: 1px solid #2E1D0C;
}

.site-header {
  background: var(--color-surface);
  box-sizing: border-box;
  border-bottom: 1px solid #2E1D0C;
  border-right: 1px solid #2E1D0C;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.nav-main {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
}

.nav-main a {
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-auth {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.user-greeting {
  font-size: 1.1rem;
  color: var(--color-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  font-family: var(--font-sans);
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--color-muted);
  border: none;
  padding: 0.5rem;
}

.btn-ghost:hover {
  color: var(--color-accent);
}

.nav-icon {
  height: 28px;
  padding:0;
}

/* Hero (landing – customize later) */
.hero {
  background: linear-gradient(135deg, #e8ebe6 0%, #d4ddd6 50%, #c5d4cb 100%);
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.page-main {
  flex: 1;
  padding: 3rem 0;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-image {
  aspect-ratio: 4 / 3;
  background: #eee;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.card-price {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.15rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* Forms */
.form-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--color-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: none;
}

.alert.visible {
  display: block;
}

.alert-error {
  background: #fde8e8;
  color: var(--color-error);
  border: 1px solid #f5c6c6;
}

.alert-success {
  background: #e8f5ee;
  color: var(--color-success);
  border: 1px solid #b8dfc9;
}

.auth-page-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.auth-page {
  width: 100%;
  max-width: 450px;
}

.auth-page-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 400;
  color: var(--color-red-primary);
  margin-bottom: 1.75rem;
  line-height: 1.1;
}

.auth-card {
  border: 1px solid rgba(144, 20, 0, 0.890196);
  border-radius: 15px;
  overflow: hidden;
  background: #ffffff;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: default;
}

.auth-tab--link {
  background: var(--color-red-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.auth-tab--link:hover {
  background: #d40f0f;
}

.auth-tab--active {
  background: var(--color-red-secondary);
}

.auth-card-body {
  padding: 1.25rem 2.25rem 1.75rem;
}

.auth-form-group {
  margin-bottom: 0.55rem;
}

.auth-form-group label {
  display: block;
  font-weight: 600;
  font-size: 1.25rem;
  /* color: #901400; */
  margin-bottom: 0.35rem;
}

.auth-form-group label .optional {
  font-weight: 400;
  color: #a06050;
}

.auth-form-group input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(144, 20, 0, 0.25);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background: #ffffff;
}

.auth-form-group input::placeholder {
  color: rgba(144, 20, 0, 0.35);
}

.auth-form-group input:focus {
  outline: 2px solid rgba(238, 18, 18, 0.35);
  outline-offset: 1px;
  border-color: rgba(144, 20, 0, 0.5);
}

.auth-submit-btn {
  display: block;
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--color-red-primary);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-submit-btn:hover {
  background: #d40f0f;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.auth-footer a {
  color: var(--color-red-primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-card-body .alert {
  border-radius: 8px;
}

/* Product detail */
.product-page-main {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.product-detail {
  max-width: 960px;
  margin: 0 auto;
}

.product-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid rgba(144, 20, 0, 0.890196);
  border-radius: 15px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-main-image-wrap {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f0eb;
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.product-thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f0eb;
  cursor: pointer;
  transition: border-color 0.2s;
}

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

.product-thumb--active,
.product-thumb:hover {
  border-color: rgba(144, 20, 0, 0.55);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.product-name {
  font-size: 2.85rem;
  font-weight: 700;
  color: var(--color-red-secondary);
  line-height: 1.2;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-red-primary);
}

.product-description {
  font-size: 1rem;
  line-height: 1.45;
  color: #5c5c5c;
}

.product-buy-cta {
  display: flex;
  align-items: flex-end;
}

.product-buy-btn {
  align-self: flex-end;
  margin-top: 0.5rem;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 999px;
  background: var(--color-red-primary);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.product-buy-btn:hover:not(:disabled) {
  background: var(--color-red-secondary);
}

.product-buy-btn:disabled {
  background: #c4a8a0;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .product-detail-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .product-info {
    justify-content: flex-start;
  }

  .product-buy-btn {
    width: 100%;
    text-align: center;
  }
}

.username-checkout {
  color: var(--color-black);
  font-size: 1rem;
  font-weight: bold;
}

.payment-qr {
  width: 100%;
}

.payment-page-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.payment-card {
  width: 100%;
  display: flex;
  grid-template-columns: 1fr 1fr;
  max-width: 540px;
  gap: 2.5rem;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid rgba(144, 20, 0, 0.890196);
  border-radius: 15px;
}

.product-total-price {
  text-align: start;
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--color-red-primary);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

/* About */
.about-content {
  max-width: 720px;
}

.about-content p {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 1.1rem;
  
  margin-bottom: 1.25rem;
  color: var(--color-black);
}

/* Blog detail */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
}

.blog-article .card-image {
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.blog-article h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.blog-meta {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.blog-content {
  line-height: 1.8;
  color: var(--color-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

/* Orders (spreadsheet-like rows) */
.orders-table-wrap {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.orders-header,
.orders-row {
  display: grid;
  grid-template-columns: 140px 170px 1.2fr 100px 140px 150px 130px 140px 1.5fr;
  gap: 0;
  align-items: center;
}

.orders-header {
  background: rgba(244, 163, 0, 0.12);
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}

.orders-body .orders-row {
  border-bottom: 1px solid rgba(232, 228, 223, 0.6);
}

.orders-body .orders-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.65);
}

.orders-body .orders-row:nth-child(even) {
  background: rgba(250, 248, 245, 0.65);
}

.orders-cell {
  padding: 0.85rem 0.9rem;
  font-size: 0.95rem;
  color: var(--color-text);
  min-width: 0;
}

.orders-cell--note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-muted);
}

.status-card {padding-left: 5px; padding-right: 5px; border-radius: 5px; justify-self: left;}

.o-placed {
  color: var(--color-blue);
  border: solid var(--color-blue) 1px;
  background-color: oklch(from var(--color-blue) calc(l + 0.32) c h); 
}

.o-processing {
  color: var(--color-yellow);
  border: solid var(--color-yellow) 1px;
  background-color: oklch(from var(--color-yellow) calc(l + 0.32) c h); 
}

.o-shipping {
  color: var(--color-accent);
  border: solid var(--color-accent) 1px;
  background-color: oklch(from var(--color-accent) calc(l + 0.32) c h); 
}

.o-delivered {
  color: var(--color-success);
  border: solid var(--color-success) 1px;
  background-color: oklch(from var(--color-success) calc(l + 0.32) c h); 
}

.o-cancelled {
  color: var(--color-muted);
  border: solid var(--color-muted) 1px;
  background-color: oklch(from var(--color-muted) calc(l + 0.32) c h); 
}

.orders-header .orders-cell {
  color: var(--color-text);
}

@media (max-width: 1100px) {
  .orders-header,
  .orders-row {
    grid-template-columns: 120px 150px 1.1fr 90px 130px 140px 120px 130px 1.3fr;
  }
}

@media (max-width: 860px) {
  .orders-table-wrap {
    overflow-x: auto;
  }

  .orders-header,
  .orders-row {
    min-width: 980px;
  }
}

/* Profile */
.profile-wrap {
  width: 100%;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.profile-card .card-body,
.profile-form-card .card-body {
  padding: 1.25rem 1.5rem;
}

.profile-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.profile-field {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(232, 228, 223, 0.6);
}

.profile-field:last-child {
  border-bottom: none;
}

.profile-label {
  font-weight: 700;
  color: var(--color-muted);
}

.profile-value {
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-edit-btn {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {

  background: #f5a623;
  color: #fff;
  padding: 3.5rem 1.5rem 4rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 3rem;
}

.footer-logo:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 50%;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-col a {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.loading {
  text-align: center;
  color: var(--color-muted);
  padding: 2rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
  }

  .nav-main.open {
    display: flex;
  }

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

/* Footer media */

@media (max-width: 880px) {
  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
    width: 100%;
  }

  .footer-logo {
    margin-bottom: 2.5rem;
  }
}

/* Orders (spreadsheet-like rows) */
.orders-table-wrap {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.orders-header,
.orders-row {
  display: grid;
  grid-template-columns: 30% 20% 10% 10% 13%;
  gap: 0;
  align-items: center;
}

.orders-body .orders-row {
  border-bottom: 1px solid rgba(232, 228, 223, 0.6);
}

.orders-body .orders-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.65);
}

.orders-body .orders-row:nth-child(even) {
  background: rgba(250, 248, 245, 0.65);
}

.orders-name {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--color-text);
  display: inline;
}

.orders-name:hover {
  color: var(--color-accent);
}

.orders-cell {
  padding: 0.85rem 0.9rem;
  font-size: 0.95rem;
  color: var(--color-text);
  min-width: 0;
}

.orders-cell--note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-muted);
}

.orders-header .orders-cell {
  color: var(--color-text);
}

@media (max-width: 1100px) {
  .orders-header,
  .orders-row {
    grid-template-columns: 30% 20% 10% 10% 15%;
  }
}

@media (max-width: 860px) {
  .orders-table-wrap {
    overflow-x: auto;
  }

  .orders-header,
  .orders-row {
    min-width: 980px;
  }
}

