:root {
  --primary-color: #4A2810; /* Dark rich brown from the ribbon */
  --secondary-color: #D49B37; /* Gold background */
  --accent-color: #4B6E2C; /* Green leaves */
  --bg-color: #FCF9F2; /* Very light warm cream */
  --text-color: #3E2723; /* Darker brown for text */
  --card-bg: #FFFFFF;
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z' fill='%23d49b37' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  color: var(--text-color);
  line-height: 1.6;
}

header {
  background-color: #FFFFFF;
  color: var(--primary-color);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-bottom: 4px solid var(--secondary-color);
}

.header-logo {
  max-width: 100px;
  max-height: 100px;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

header h1 {
  font-family: 'Georgia', serif; /* A bit traditional */
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

header p {
  font-style: italic;
  color: var(--secondary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Grid for Menu Items */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card Styling Update */
.menu-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(94, 58, 26, 0.1);
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.menu-image {
  width: 110px;
  height: auto;
  min-height: 110px;
  background-color: #eee;
  object-fit: cover;
  flex-shrink: 0;
}

.menu-content {
  padding: 0.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.menu-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
  font-weight: bold;
}

.menu-desc {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-footer-card {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.menu-price {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: bold;
}

/* Base Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #311808;
}

.btn-wa {
  background-color: #25D366;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-wa:hover {
  background-color: #128C7E;
}

.btn-add {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
.btn-add:hover {
  background-color: #311808;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: #DA9934;
  color: white;
}

.btn-danger {
  background-color: #d9534f;
}

.btn-danger:hover {
  background-color: #c9302c;
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.admin-table th, .admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background-color: var(--primary-color);
  color: white;
}

.admin-table tr:hover {
  background-color: #fcfcfc;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(212, 157, 66, 0.2);
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #FFFFFF;
  color: var(--text-color);
  margin-top: 3rem;
  border-top: 1px solid #EAEAEA;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-logo {
  max-width: 80px;
}

.footer-info h3 {
  color: var(--primary-color);
  font-family: 'Georgia', serif;
}

.copyright {
  font-size: 0.9rem;
  color: #888;
}

/* New Sections CSS */
.header-info {
  margin-top: 1rem;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .header-info {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

.about-section {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 3rem;
  border-left: 5px solid var(--secondary-color);
}

.about-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: 'Georgia', serif;
}

.section-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-family: 'Georgia', serif;
  font-size: 2rem;
}

@media (min-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-card {
    flex-direction: column;
  }
  .menu-image {
    width: 100%;
    height: 180px;
  }
  .menu-desc {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin-bottom: 1rem;
  }
  .menu-content {
    padding: 1.5rem;
  }
}

@media (min-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Testimonials */
.testimonials-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--secondary-color);
    position: relative;
    border-top: 1px solid #EEE;
}
.testimonial-card::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(212, 155, 55, 0.2);
    font-family: serif;
}
.stars { color: #f39c12; font-size: 1.2rem; margin-bottom: 0.5rem; }
.testi-text { font-style: italic; font-size: 0.95rem; margin-bottom: 1rem; color: #555; }
.testi-author { font-weight: bold; color: var(--primary-color); font-size: 0.9rem; }

/* Cart System */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: transform 0.2s;
    border: 2px solid var(--secondary-color);
}
.floating-cart.pop {
    transform: scale(1.1);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-color);
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    right: 0;
}
.cart-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 { margin: 0; }
.close-btn { background: none; border: none; font-size: 1.5rem; color: white; cursor: pointer; }
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
}
.cart-item {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ci-info { display: flex; justify-content: space-between; font-size: 0.95rem; }
.ci-info strong { color: var(--primary-color); }
.ci-info span { color: var(--accent-color); font-weight: bold; }
.ci-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}
.ci-actions button {
    width: 25px; height: 25px; background: var(--secondary-color); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight:bold;
}
.cart-footer-btn {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}
.cart-total-info { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-color);}
.empty-cart { text-align: center; color: #888; font-style: italic; margin-top: 2rem; }

/* Location Toggle in Cart */
.location-toggle {
    margin: 12px 0 4px;
    border-radius: 8px;
}

.loc-not-set {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-color);
    border: 1px dashed rgba(212, 155, 55, 0.5);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.2s ease;
}
.loc-not-set:hover {
    background: rgba(212, 155, 55, 0.08);
    border-color: var(--secondary-color);
}
.loc-add-icon {
    margin-left: auto;
    font-size: 1.2rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    font-size: 0.9rem;
}
.toggle-text {
    flex-grow: 1;
}

.loc-set {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(75, 110, 44, 0.08);
    border: 1px solid rgba(75, 110, 44, 0.25);
    border-radius: 8px;
}
.loc-set-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.loc-set-text {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
    word-break: break-word;
}
.loc-set-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.loc-btn-edit, .loc-btn-remove {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.loc-btn-edit {
    background: var(--secondary-color);
    color: white;
}
.loc-btn-edit:hover { background: #c08a2f; }
.loc-btn-remove {
    background: #eee;
    color: #999;
}
.loc-btn-remove:hover { background: #d9534f; color: white; }

/* Shipping Info Badges */
.shipping-badge {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 10px;
    animation: fadeInUp 0.3s ease;
}
.shipping-free {
    background: linear-gradient(135deg, rgba(75, 110, 44, 0.12), rgba(75, 110, 44, 0.06));
    border: 1px solid rgba(75, 110, 44, 0.3);
    color: #3d6b1d;
    font-weight: 600;
}
.shipping-almost {
    background: linear-gradient(135deg, rgba(212, 155, 55, 0.12), rgba(212, 155, 55, 0.06));
    border: 1px solid rgba(212, 155, 55, 0.3);
    color: #8a6a1f;
}
.shipping-paid {
    background: rgba(200, 200, 200, 0.15);
    border: 1px solid rgba(150, 150, 150, 0.3);
    color: #666;
}

/* ===== LOCATION MODAL ===== */
.loc-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}
.loc-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.loc-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.loc-modal-overlay.open .loc-modal {
    transform: translateY(0) scale(1);
}

.loc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--primary-color), #5E3A1A);
    color: white;
    border-radius: 16px 16px 0 0;
}
.loc-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.loc-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.loc-modal-close:hover { background: rgba(255,255,255,0.35); }

/* Tabs */
.loc-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}
.loc-tab {
    flex: 1;
    padding: 0.9rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    transition: all 0.2s ease;
}
.loc-tab:hover { color: var(--primary-color); background: rgba(212, 155, 55, 0.05); }
.loc-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    background: rgba(212, 155, 55, 0.08);
}

/* Panels */
.loc-panel {
    padding: 1.5rem;
}

/* GPS Panel */
.gps-illustration {
    text-align: center;
    padding: 1rem 0;
}
.gps-icon-big {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
    display: inline-block;
}
.gps-icon-big.pulse {
    animation: gpsPulse 1.5s ease-in-out infinite;
}
@keyframes gpsPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}
.gps-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}
.loc-btn-detect {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-color) !important;
}
.loc-btn-detect:hover { background: #4a6b28 !important; }
.loc-btn-detect:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-detect-icon {
    font-size: 1.1rem;
}
.btn-detect-icon.spin {
    animation: spinIcon 1s linear infinite;
}
@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Status messages */
.loc-modal-status {
    margin-top: 1rem;
    font-size: 0.88rem;
    min-height: 1.4em;
}
.loc-modal-loading {
    color: var(--secondary-color);
    animation: locPulse 1.2s ease-in-out infinite;
}
.loc-modal-success { color: var(--accent-color); }
.loc-modal-error { color: #d9534f; line-height: 1.5; }
.loc-modal-hint { color: #999; font-style: italic; }

@keyframes locPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Search Panel */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 12px;
    font-size: 1rem;
    pointer-events: none;
}
.search-input-wrap input {
    width: 100%;
    padding: 0.85rem 2.5rem 0.85rem 2.5rem;
    border: 2px solid #e0d5c5;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.search-input-wrap input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 155, 55, 0.15);
}
.search-clear {
    position: absolute;
    right: 8px;
    background: #ddd;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.search-clear:hover { background: #ccc; }

.search-results {
    margin-top: 0.8rem;
    max-height: 220px;
    overflow-y: auto;
}
.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
}
.search-result-item:hover {
    background: rgba(212, 155, 55, 0.08);
}
.search-result-item.selected {
    background: rgba(75, 110, 44, 0.1);
    border-color: var(--accent-color);
}
.sri-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.sri-info {
    flex: 1;
    min-width: 0;
}
.sri-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.4;
    word-break: break-word;
}
.sri-info strong mark {
    background: rgba(212, 155, 55, 0.3);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}
.sri-type {
    font-size: 0.75rem;
    color: #999;
    text-transform: capitalize;
}
.search-empty {
    text-align: center;
    padding: 1.5rem;
    color: #999;
    font-size: 0.9rem;
}

/* Map Preview */
.loc-preview {
    margin: 0 1.5rem 1rem;
    border: 1px solid #e0d5c5;
    border-radius: 10px;
    overflow: hidden;
    animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.loc-preview-header {
    background: var(--bg-color);
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    border-bottom: 1px solid #e0d5c5;
}
.loc-map-container {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
}
.loc-map-frame {
    width: 100%;
    height: 100%;
    border: none;
}
.loc-preview-info {
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
    background: white;
}

/* Modal Footer */
.loc-modal-footer {
    display: flex;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    justify-content: flex-end;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}

/* Responsive */
@media (max-width: 520px) {
    .loc-modal {
        max-height: 95vh;
        border-radius: 12px;
    }
    .loc-modal-header {
        border-radius: 12px 12px 0 0;
        padding: 1rem;
    }
    .loc-modal-footer {
        border-radius: 0 0 12px 12px;
        padding: 1rem;
        flex-direction: column-reverse;
    }
    .loc-modal-footer .btn {
        width: 100%;
    }
    .loc-tab {
        font-size: 0.8rem;
        padding: 0.7rem;
    }
    .loc-map-container {
        height: 250px;
    }
}

