/* Shared / Common */
.hidden { display: none; }

/* Guide / User HTML Fragments */
.guide-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #cec6b1;
    padding: 15px;
    border-radius: 10px;
}
.guide-logo-container { text-align: center; margin-bottom: 15px; }
.guide-logo { height: auto; width: 80%; opacity: 0.8; position: relative; left: -15px; }
.guide-title { color: #2d6a4f; border-bottom: 2px solid #2d6a4f; padding-bottom: 10px; margin-top: 0; }
.guide-section-title { color: #2d6a4f; margin-bottom: 5px; margin-top: 20px; }
.guide-details-group { margin-top: 5px; }
.guide-details { margin-bottom: 8px; }
.guide-summary { cursor: pointer; font-weight: bold; }
.guide-p { margin: 5px 0 0 18px; }
.guide-footer { margin-top: 30px; font-size: 0.85em; color: #666; border-top: 1px solid #eee; padding-top: 10px; }

/* Auth Pages (Verify & Reset Password) */
.auth-page-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
}
.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}
.auth-title { color: #2c3e50; margin-top: 0; }
.auth-text { color: #666; margin-bottom: 25px; line-height: 1.5; }
.auth-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #17a2b8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}
.auth-btn:hover { background-color: #138496; }
.auth-btn.auto-width { width: auto; }
.auth-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.text-error { color: #dc3545; }
.text-error-msg { color: #dc3545; margin-top: 10px; }
.text-success { color: #28a745; }
.text-success-msg { color: #28a745; margin-top: 10px; }
.fatal-error { color: #dc3545; margin-top: 20px; font-weight: bold; font-size: 1.5rem; }
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #17a2b8;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.lang-switch-container { position: absolute; top: 20px; right: 20px; }
.lang-switch-btn {
    background: white;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.back-link { display: block; margin-top: 20px; color: #666; text-decoration: none; }

/* Index Page Components */
.header-logo {
    height: 100px;
    width: auto;
    position: static;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 4px solid var(--primary);
}
.page-select { margin: 0 10px; padding: 8px; border-radius: 4px; border: 1px solid var(--primary); }
.hamburger-wrapper { position: relative; margin-left: 10px; }
.hamburger-btn { background: transparent; border: 1px solid #333; color: #333; font-size: 1.2rem; padding: 2px 8px; cursor: pointer; border-radius: 4px; }
.hamburger-menu-item { width: 100%; text-align: left; margin: 0; }
.bg-purple { background: blueviolet; }
.bg-green { background: green; }
.bg-blue { background: #4a90e2; }
.bg-purple-dark { background: #6f42c1; }
.bg-orange { background: #ff6d00; }

.items-per-page-wrapper { padding: 5px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 5px 0; }
.items-per-page-label { font-size: 1rem; color: black; display: block; margin-bottom: 2px; font-weight: bold; }
.items-per-page-select { width: 100%; padding: 5px; border-radius: 4px; border: 1px solid var(--primary); background: aquamarine; font-weight: bold; font-size: 1rem; }

.image-input-group { display: flex; gap: 10px; margin-bottom: 10px; }
.image-url-input { flex: 1; }
.upload-trigger-btn { width: auto; padding: 10px 15px; background: #ff6d00; }

.auth-overlay {
    display: none;
    /* background: linear-gradient(rgba(220, 255, 220, 0.3), rgba(220, 255, 220, 0.9)), url('/main.webp'); */
    background: url('/main.webp');
    background-size: cover;
    background-position: center;
}
.auth-lang-pos { position: absolute; top: 20px; right: 20px; z-index: 1001; }
.auth-lang-btn { background: rgba(255,255,255,0.9); border: 1px solid #ccc; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-weight: bold; color: #333; }

.corner-logo { border-radius: 50%; }

.cart-close-btn { cursor: pointer; font-size: 2rem; color: red; }
.cart-total-header { text-align: right; }
.paypal-wrapper { margin-top: 15px; }

.help-dialog {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    background: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 2000;
}
.help-close-btn { position: absolute; top: 5px; right: 10px; color: red; cursor: pointer; font-weight: bold; font-size: 2rem; }
.help-header { margin-top: 0; position: static; width: 90%; }
.help-body { white-space: pre-wrap; max-height: 400px; overflow-y: auto; }

.no-results {
    font-size: 1.5rem;
    color: black;
    font-weight: bolder;
}

.cart-label {
    background: var(--accent);
    border-radius: 10%;
    padding: 6px;
}

.cart-label:hover {
    filter: brightness(1.1);
    color: var(--black);
}

#contact-btn {
    border-radius: 20px;
}

/* Orders Modal */
.orders-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.orders-title {
    margin: 0;
}

.orders-filter {
    padding: 5px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.orders-list {
    overflow-y: auto;
    margin-bottom: 20px;
    flex-grow: 1;
}

.orders-actions {
    flex-shrink: 0;
}

.auto-width {
    width: auto;
}

/* Order Details Modal */
.order-details-content {
    max-width: 600px;
    width: 95%;
}

.order-items-scroll {
    max-height: 60vh;
    overflow-y: auto;
}

.order-details-actions {
    justify-content: flex-end;
    margin-top: 15px;
}

/* Receipt Modal */
.receipt-modal-content {
    text-align: center;
}

.receipt-image {
    max-width: 100%;
    max-height: 60vh;
    margin: 10px 0;
    border: 1px solid #ddd;
}

.receipt-actions {
    justify-content: center;
    gap: 10px;
}