/* --- Product Gallery Layout --- */
.product-gallery-main {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 0.7rem auto;
    display: block;
    border-radius: 0.7rem;
    box-shadow: 0 2px 12px #0002;
    object-fit: cover;
}
.product-gallery-thumbs {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.product-gallery-thumb {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.2s;
}
.product-gallery-thumb.selected {
    border: 2px solid #667eea;
}
@media (max-width: 768px) {
    .product-gallery-main { max-width: 98vw; }
    .product-gallery-thumbs { gap: 0.3rem; }
    .product-gallery-thumb { width: 44px; height: 44px; }
}
/* --- Improved Image Display --- */
img, .product-image, .prod-thumb, .img-preview, .img-preview img, .img-gallery img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: cover;
    box-shadow: 0 2px 12px #0001;
}
.prod-thumb, .img-preview, .img-gallery img {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
}
.img-preview {
    max-width: 120px;
    max-height: 120px;
}
.img-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.img-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px #0001;
}
/* --- Enhanced Responsive Breakpoints --- */
@media (max-width: 1024px) {
    .container { max-width: 900px; }
    .main-nav, nav ul { gap: 1rem; }
}
@media (max-width: 768px) {
    .container { max-width: 100%; padding: 0 0.5rem; }
    .flex, .md\:flex-row, .main-nav, nav ul { flex-direction: column !important; gap: 0.5rem; }
    .hero-section, section { padding: 2rem 0.5rem; }
    .product-grid { grid-template-columns: 1fr !important; }
    .md\:w-1\/2 { width: 100% !important; }
    .md\:pl-12 { padding-left: 0 !important; margin-top: 1.5rem !important; }
    h1, .text-2xl, .text-4xl { font-size: 1.5rem !important; }
}
@media (max-width: 480px) {
    .container { padding: 0 0.25rem; }
    h1, .text-2xl, .text-4xl { font-size: 1.2rem !important; }
    .btn, button { padding: 0.5rem 1rem !important; font-size: 1rem !important; }
    nav ul { gap: 0.3rem; }
}
/* styles.css */
/* 
 * Coffee Shop Landing Page Styles
 * This CSS file contains all styling for the minimalist coffee shop landing page
 * Author: Web Designer
 * Date: 2023
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;500&display=swap');

/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Header styles */
header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e5e5e5;
}

/* Navigation menu */
nav ul {
    display: flex;
    gap: 1.5rem;
}

/* Product image styling */
.product-image {
    width: 100%;
    max-width: 100%;
    transition: transform 0.3s ease;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image:hover {
    transform: scale(1.02);
}

.thumbnail {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
}

/* Hero section styling */
section {
    padding: 3rem 1rem;
}

/* Upload area styling */
.upload-area {
    border: 2px dashed #000000;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.upload-area:hover {
    background-color: #f5f5f5;
}

.upload-area.dragover {
    background-color: #f0f0f0;
    border-color: #8B4513;
}

/* Button styling */
button {
    transition: all 0.3s ease;
    border-radius: 9999px; /* Rounded button */
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Footer styling */
footer {
    padding: 2.5rem 1rem;
    border-top: 1px solid #e5e5e5;
}

/* Add missing utilities */
.bg-white { background-color: #ffffff; }
.text-black { color: #000000; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
.border-b { border-bottom: 1px solid #e5e5e5; }
.border-gray-200 { border-color: #e5e5e5; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.md\:flex-row { flex-direction: row; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.mb-4 { margin-bottom: 1rem; }
.md\:mb-0 { margin-bottom: 0; }
.mr-3 { margin-right: 0.75rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.hover\:text-gray-600:hover { color: #4b5563; }
.transition { transition: all 0.3s ease; }
.mt-4 { margin-top: 1rem; }
.md\:mt-0 { margin-top: 0; }
.bg-black { background-color: #000000; }
.text-white { color: #ffffff; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.md\:w-1\/2 { width: 50%; }
.mb-10 { margin-bottom: 2.5rem; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.md\:pl-12 { padding-left: 3rem; }
.text-4xl { font-size: 2.25rem; }
.text-lg { font-size: 1.125rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.mr-4 { margin-right: 1rem; }
.text-yellow-500 { color: #eab308; }
.mr-1 { margin-right: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.list-disc { list-style-type: disc; }
.pl-5 { padding-left: 1.25rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.sm\:flex-row { flex-direction: row; }
.space-y-4 > * + * { margin-top: 1rem; }
.sm\:space-y-0 { margin-top: 0; }
.sm\:space-x-4 > * + * { margin-left: 1rem; }
.flex-1 { flex: 1 1 0%; }
.text-center { text-align: center; }
.border { border: 1px solid #000000; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.bg-gray-50 { background-color: #f9fafb; }
.max-w-4xl { max-width: 56rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.p-6 { padding: 1.5rem; }
.md\:p-8 { padding: 2rem; }
.text-xl { font-size: 1.25rem; }
.mb-4 { margin-bottom: 1rem; }
.cursor-pointer { cursor: pointer; }
.text-gray-400 { color: #9ca3af; }
.mb-3 { margin-bottom: 0.75rem; }
.text-gray-500 { color: #6b7280; }
.hidden { display: none; }
.border-gray-300 { border-color: #d1d5db; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #000000; }
.focus\:ring-black:focus { box-shadow: 0 0 0 2px #000000; }
.justify-end { justify-content: flex-end; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.border-t { border-top: 1px solid #e5e5e5; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.text-gray-600 { color: #4b5563; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.hover\:text-black:hover { color: #000000; }
.mt-10 { margin-top: 2.5rem; }
.pt-6 { padding-top: 1.5rem; }

/* Reviews Section Styling */
.bg-gray-50 { background-color: #f9fafb; }
.border-l-4 { border-left: 4px solid; }
.border-yellow-500 { border-color: #eab308; }
.border-green-500 { border-color: #22c55e; }
.bg-yellow-200 { background-color: #fef08a; }
.text-yellow-800 { color: #713f12; }
.bg-green-200 { background-color: #dcfce7; }
.text-green-800 { color: #166534; }
.opacity-90 { opacity: 0.9; }

/* Admin Reviews Section Styling */
.hidden { display: none; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-800 { background-color: #1f2937; }
.bg-green-600 { background-color: #16a34a; }
.bg-green-700 { background-color: #15803d; }
.bg-green-600:hover { background-color: #15803d; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-red-600:hover { background-color: #b91c1c; }
.bg-yellow-500 { background-color: #eab308; }
.text-gray-900 { color: #111827; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }

/* Add for error styling in JS */
.text-red-500 { color: #ef4444; }

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Stack elements vertically on mobile */
    .flex-col {
        flex-direction: column;
    }
    
    /* Adjust spacing on mobile */
    .md\:px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Adjust product details spacing */
    .md\:pl-12 {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    /* Adjust footer layout */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Utility classes for Tailwind-like functionality */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .md\:flex-row {
        flex-direction: column;
    }
    
    .md\:w-1\/2 {
        width: 100%;
    }
    
    .md\:pl-12 {
        padding-left: 0;
        margin-top: 1.5rem;
    }
    
    .md\:px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.max-w-xl {
    max-width: 36rem;
}

@media (max-width: 1024px) {
    .lg\:flex-row {
        flex-direction: column;
    }
    .lg\:pl-12 {
        padding-left: 0;
    }
}

.items-stretch { align-items: stretch; }
.items-start { align-items: flex-start; }
.flex-wrap { flex-wrap: wrap; }

/* Typography utilities */
.text-xs     { font-size: 0.75rem;   line-height: 1rem; }
.text-sm     { font-size: 0.875rem;  line-height: 1.25rem; }
.font-medium { font-weight: 500; }
.uppercase   { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Spacing utilities */
.p-4   { padding: 1rem; }
.px-2  { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-8  { padding-left: 2rem;    padding-right: 2rem; }
.py-1  { padding-top: 0.25rem;  padding-bottom: 0.25rem; }
.py-3  { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-16 { padding-top: 4rem;     padding-bottom: 4rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-12 { margin-top: 3rem; }
.ml-4  { margin-left: 1rem; }
.inline-block { display: inline-block; }

/* Grid utilities */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Color utilities – product card badges */
.text-gray-800 { color: #1f2937; }
.bg-gray-100   { background-color: #f3f4f6; }
.bg-green-100  { background-color: #dcfce7; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-red-100    { background-color: #fee2e2; }
.text-red-800  { color: #991b1b; }

/* Hover / transition utilities */
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.transition-shadow  { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.transition-colors  { transition-property: background-color,border-color,color; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* responsive helpers */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:w-1\/2 { width: 50%; }
    .md\:pl-12 { padding-left: 3rem; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .md\:mt-0 { margin-top: 0; }
}

/* ============================================================
   Global responsive hardening for phone/tablet/fold devices
   ============================================================ */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    min-width: 0;
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Tablet and down */
@media (max-width: 1024px) {
    header .container {
        gap: 0.85rem;
    }

    nav ul {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .text-5xl { font-size: 2.45rem; }
    .text-4xl { font-size: 2rem; }
    .text-3xl { font-size: 1.65rem; }

    .gap-8 { gap: 1.2rem; }
}

/* Smartphone */
@media (max-width: 768px) {
    header {
        padding: 1rem 0.8rem;
    }

    header .container {
        align-items: center;
    }

    header .container > .flex.items-center {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.6rem;
    }

    section {
        padding: 2.25rem 0.8rem;
    }

    footer {
        padding: 2rem 0.8rem;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        gap: 0.65rem;
    }

    nav ul li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0.2rem 0.35rem;
    }

    .text-5xl { font-size: 2rem; }
    .text-4xl { font-size: 1.6rem; }
    .text-3xl { font-size: 1.35rem; }
    .text-2xl { font-size: 1.3rem; }
    .text-xl { font-size: 1.05rem; }

    .px-8 { padding-left: 1rem; padding-right: 1rem; }
    .px-6 { padding-left: 1rem; padding-right: 1rem; }
    .py-3 { padding-top: 0.65rem; padding-bottom: 0.65rem; }
    .py-2 { padding-top: 0.55rem; padding-bottom: 0.55rem; }

    button,
    .btn,
    .btn-pay,
    .method-tab,
    .logout-btn,
    .back-btn,
    .inv-btn-head {
        min-height: 44px;
    }

    .grid,
    .dashboard-stats,
    .orders-grid,
    .inv-stats,
    .product-form,
    .layout {
        grid-template-columns: 1fr;
    }

    .order-actions,
    .product-actions,
    .inventory-actions,
    .inv-actions,
    .actions,
    .btn-row,
    .header-actions {
        flex-wrap: wrap;
    }
}

/* Fold / ultra-narrow smartphone */
@media (max-width: 420px) {
    header,
    .co-header,
    .admin-header,
    .orders-header,
    .inv-header,
    .page-header {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .container,
    .admin-container,
    .orders-container,
    .inv-container,
    .co-layout,
    .layout {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        flex: 1 1 calc(50% - 0.35rem);
    }

    nav ul li a {
        width: 100%;
        min-height: 42px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        font-size: 0.82rem;
    }

    .text-5xl { font-size: 1.7rem; }
    .text-4xl { font-size: 1.45rem; }
    .text-3xl { font-size: 1.2rem; }

    .rounded-full {
        border-radius: 0.7rem;
    }

    .method-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .method-tab {
        min-width: 0;
        padding: 0.55rem 0.5rem;
        font-size: 0.72rem;
    }

    .thumbnail {
        width: 3.25rem;
        height: 3.25rem;
    }
}