/* General Body and Font Styles */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #003049; /* Main body text color */
    background-color: #f8f8f8;
    line-height: 1.6;
}

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

/* Landing page: warmer, more approachable */
.landing-page {
    background-color: #fafafa;
}

/* Global Container for Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

/* Highlight Color */
.highlight-red {
    color: #e30713;
}

/* Header */
.main-header {
    padding: 20px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.main-header .logo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header-logo {
    height: 35px; /* Adjust as needed */
    vertical-align: middle;
}

/* Site header (storefront / landing – Tazaj-style) */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,48,73,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px 14px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.site-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.site-logo {
    height: 36px;
    display: block;
}
.site-search {
    flex: 1;
    min-width: 0;
    max-width: 420px;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid rgba(0,48,73,0.1);
    border-radius: 10px;
    padding: 10px 14px;
}
.site-search i {
    color: #003049;
    margin-right: 10px;
    font-size: 0.95em;
}
.site-search input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.95em;
    color: #003049;
}
.site-search input::placeholder {
    color: rgba(0,48,73,0.5);
}
.site-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #003049;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: background 0.2s, color 0.2s;
}
.site-action:hover {
    background: rgba(227,7,19,0.08);
    color: #e30713;
}
.site-action i {
    font-size: 1.2em;
}
.site-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: #f5f5f5;
    color: #003049;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
}
.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.site-nav a {
    color: #003049;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.site-nav a:hover {
    background: rgba(227,7,19,0.08);
    color: #e30713;
}

.site-header-slim .site-header-top {
    flex-wrap: wrap;
}
.site-header-slim .site-search {
    display: none;
}
.site-header-slim .site-nav {
    padding: 0;
    border: none;
    margin-left: auto;
    display: flex;
}
.site-header-slim .site-nav a {
    padding: 8px 14px;
}
.site-nav-slim {
    padding-bottom: 0;
}
@media (max-width: 576px) {
    .auth-page .site-header-top {
        padding: 10px 16px;
    }
    .auth-page .site-nav a {
        padding: 6px 10px;
        font-size: 0.9em;
    }
    .auth-page .site-action-label {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: #fafafa;
    padding: 40px 16px 72px;
}
.hero-overlay {
    display: none;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    background-color: #003049;
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    color: #fff;
}
.hero-inner > * {
    width: 100%;
}
.hero-text {
    text-align: left;
}
.hero-tagline {
    font-size: 1.40em;
    font-weight: 500;
    color: #fcebeb;
    margin: 0 0 12px 0;
    letter-spacing: 0.02em;
}
.hero-logo-main {
    height: 52px;
    margin-bottom: 16px;
}
.hero-section h1 {
    font-size: 2.75em;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.hero-section .subtitle {
    font-size: 1.05em;
    color: #fff;
    margin-bottom: 28px;
    max-width: 540px;
    margin-left: 0;
    margin-right: 0;
    opacity: 0.92;
    line-height: 1.55;
}
.hero-buttons {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image-card {
    background-color: #fff;
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    max-width: 320px;
    width: 100%;
}

.hero-image {
    border-radius: 20px;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/b/b6/Sari-sari_Store.JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 70%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    cursor: pointer;
    font-size: 1em;
}
.primary-btn {
    background-color: #e30713;
    color: #fff;
    border: 1px solid #e30713;
    box-shadow: 0 2px 12px rgba(227,7,19,0.25);
}
.primary-btn:hover {
    background-color: #c0050d;
    border-color: #c0050d;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(227,7,19,0.3);
}
.secondary-btn {
    background-color: #fff;
    color: #e30713;
    border: 1px solid rgba(0,48,73,0.15);
}
.secondary-btn:hover {
    background-color: rgba(0,48,73,0.04);
    color: #c0050d;
    border-color: rgba(0,48,73,0.2);
}
.large-btn {
    padding: 16px 36px;
    font-size: 1.05em;
    border-radius: 14px;
}

/* Features Intro Section */
.features-intro-section {
    padding-top: 48px;
    padding-bottom: 24px;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.products-heading {
    font-size: 1.75em;
    font-weight: 600;
    color: #003049;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}
.section-badge {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 600;
    color: #e30713;
    background: rgba(227,7,19,0.08);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.features-intro-section h2 {
    font-size: 2.25em;
    font-weight: 600;
    color: #003049;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.features-intro-section p {
    font-size: 1.08em;
    color: #003049;
    max-width: 560px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.5;
}

/* Features Grid Section (product-style cards) */
.features-grid-section {
    background-color: #fafafa;
    padding-top: 0;
    padding-bottom: 72px;
    border-radius: 0;
}
.features-grid-section .features-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
    text-align: left;
}
.product-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
    background-color: #fff;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,48,73,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0,48,73,0.06);
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,48,73,0.1);
}
.feature-card .icon-box {
    width: 100%;
    height: 140px;
    border-radius: 0;
    margin-bottom: 0;
    background-color: #fcebeb;
    display: flex;
    justify-content: center;
    align-items: center;
}
.feature-card .icon-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 10px;
}
.feature-card h3 {
    padding: 20px 20px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #003049;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.feature-card p {
    padding: 0 20px 20px;
    font-size: 0.9em;
    color: #003049;
    opacity: 0.88;
    line-height: 1.5;
    margin: 0;
}
.icon-box {
    width: 52px;
    height: 52px;
    background-color: #fcebeb;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.icon-box img {
    width: 28px;
    height: 28px;
}

/* About Us & Contact Us Section */
/* ABOUT + CONTACT SECTION WRAPPER */
.about-section {
    padding: 80px 5%;
    background-color: #fff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.about-text-block {
    flex: 1;
}

.about-features-card {
    flex: 0.8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Mobile responsive: stack them vertically on small screens */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-features-card {
        width: 100%;
        text-align: left;
    }
}

/* CONTACT SECTION & WRAPPER */
.contact-section {
    padding: 80px 5%;
    background-color: #fdfdfd; 
}

.brand-tag
{
    color:#e30713
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; 
    gap: 50px;
    align-items: flex-start;
}

.contact-left {
    flex: 1;
    min-width: 300px;
}

.contact-left h2 {
    font-size: 2.5rem;
    color: #003049;
    margin: 10px 0;
    line-height: 1.2;
}

/* THE CONTACT BOX (The White Card) */
.contact-box {
    flex: 1;
    min-width: 320px;
    background: #ffffff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 48, 73, 0.1);
    border: 1px solid rgba(0, 48, 73, 0.05);
}

/* Form Layout */
.contact-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Force all inputs to behave inside the box */
.contact-box input,
.contact-box select,
.contact-box textarea {
    width: 100%; 
    box-sizing: border-box; /* Crucial for preventing overflow */
    display: block;         
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 48, 73, 0.2);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-box textarea {
    resize: none; /* Stops users from dragging the box and breaking the UI */
}

/* Submit Button Fix */
.submit-btn {
    width: 100%;
    background: #e30713;
    color: white;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    display: flex;           
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    background: #c0050d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 7, 19, 0.2);
}

/* Responsive Tweak for Small Screens */
@media (max-width: 768px) {
    .contact-left {
        text-align: center;
    }
    .detail-item {
        justify-content: center;
        text-align: left;
    }
}


/* Legacy CTA section (if used elsewhere) */
.cta-section {
    background: linear-gradient(180deg, #fff 0%, rgba(252,235,235,0.3) 100%);
    padding: 64px 20px 80px;
    border-radius: 24px 24px 0 0;
}
.cta-section h2 {
    font-size: 2.2em;
    font-weight: 600;
    color: #003049;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.cta-section p {
    font-size: 1.05em;
    color: #003049;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto 32px auto;
    line-height: 1.5;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.cta-buttons .btn {
    max-width: none;
    width: auto;
}

/* Footer */
.main-footer {
    background-color: #f0f0f0;
    padding: 28px 20px;
    text-align: center;
    border-top: 1px solid rgba(0,48,73,0.08);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-logo {
    height: 24px;
    opacity: 0.9;
}
.main-footer p {
    font-size: 0.9em;
    color: #003049;
    margin: 0;
    opacity: 0.88;
}
/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* Dashboard Specific Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #f0f2f5;
}

/* Sidebar (match storefront clean look) */
.sidebar {
    position: fixed;                 /* Stick to top-left */
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;                   /* Full screen height */
    background-color: #fff;
    border-right: 1px solid rgba(0,48,73,0.08);
    padding: 20px 0;
    display: flex;
    flex-direction: column;          /* Stack items */
}

/* Header */
.sidebar-header {
    padding: 0 20px;
    margin-bottom: 30px;
}

.sidebar-logo {
    height: 35px;
}

/* Navigation List */
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Navigation Items */
.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #003049;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    border-right: none;
}

/* Icons */
.sidebar-nav .nav-item i {
    margin-right: 15px;
    font-size: 1.1em;
    color: #003049;
}

/* Hover */
.sidebar-nav .nav-item:hover {
    background-color: #f5f5f5;
    color: #e30713;
}

/* Active */
.sidebar-nav .nav-item.active {
    background-color: #ffeef0;
    color: #e30713;
    border-right: 4px solid #e30713;
}

/* Main Content Area */
.main-content {
    margin-left: 250px;     /* Prevent overlap */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


/* Top Bar / Header (dashboard – match storefront look) */
.topbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background-color: #fff;
    border-bottom: 1px solid rgba(0,48,73,0.08);
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,48,73,0.08);
}
.search-bar {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px solid rgba(0,48,73,0.1);
    border-radius: 10px;
    padding: 10px 14px;
    width: 380px;
    max-width: 100%;
}
.search-bar i {
    color: #003049;
    margin-right: 10px;
    font-size: 0.95em;
}
.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.95em;
    color: #003049;
}
.search-bar input::placeholder {
    color: rgba(0,48,73,0.5);
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Topbar search wrapper + dropdowns */
.search-bar-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}
.search-bar-wrapper .search-bar {
    width: 100%;
    max-width: 100%;
}
.topbar-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003049;
    text-decoration: none;
    padding: 8px;
    transition: color 0.25s ease, transform 0.25s ease;
}
.topbar-cart-link i {
    font-size: 1.65em;
}
.topbar-cart-link:hover {
    color: #e30713;
    transform: scale(1.12);
}
.topbar-cart-link .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    min-height: 16px;
    padding: 0 4px;
    background-color: #e30713;
    color: #fff;
    border-radius: 50%;
    font-size: 0.65em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
}
.topbar-dropdown-trigger {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003049;
    transition: color 0.25s ease, transform 0.25s ease;
}
.topbar-dropdown-trigger i {
    font-size: 1.65em;
}
.topbar-dropdown-trigger:hover {
    color: #e30713;
    transform: scale(1.12);
}
.topbar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    max-width: 320px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(0,48,73,0.12);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,48,73,0.12);
    z-index: 200;
    display: none;
    padding: 8px 0;
}
.topbar-dropdown.is-open {
    display: block;
}
.search-bar-wrapper .topbar-dropdown {
    left: 0;
    right: auto;
    min-width: 300px;
}
.topbar-dropdown-header {
    padding: 10px 16px;
    font-size: 0.85em;
    font-weight: 600;
    color: #003049;
    border-bottom: 1px solid rgba(0,48,73,0.08);
}
.topbar-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    color: #003049;
    text-decoration: none;
    font-size: 0.9em;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    box-sizing: border-box;
}
.topbar-dropdown-item i {
    flex-shrink: 0;
    width: 18px;
    color: rgba(0,48,73,0.6);
}
.topbar-dropdown-item:hover {
    background: rgba(227,7,19,0.06);
}
.topbar-dropdown-item:hover i {
    color: #e30713;
}
.topbar-dropdown-item .item-text {
    flex: 1;
    min-width: 0;
}
.topbar-dropdown-item .item-meta {
    display: block;
    font-size: 0.8em;
    color: rgba(0,48,73,0.7);
    margin-top: 2px;
}
.topbar-dropdown-empty {
    padding: 16px;
    color: rgba(0,48,73,0.6);
    font-size: 0.9em;
    text-align: center;
}
.topbar-dropdown-divider {
    height: 1px;
    background: rgba(0,48,73,0.08);
    margin: 6px 0;
}

/* Cart dropdown (mini cart) */
.topbar-cart-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}
.topbar-cart-trigger.cart-bump {
    animation: cartBump 0.5s ease;
}
@keyframes cartBump {
    0% { transform: scale(1); }
    25% { transform: scale(1.35); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.topbar-cart-trigger.cart-bump .badge {
    animation: badgePop 0.5s ease;
}
@keyframes badgePop {
    0% { transform: scale(1); }
    40% { transform: scale(1.4); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.topbar-cart-dropdown {
    min-width: 280px;
    max-width: 360px;
    max-height: 380px;
    padding-bottom: 8px;
}
.topbar-cart-dropdown .topbar-dropdown-header {
    border-bottom: 1px solid rgba(0,48,73,0.08);
}
.topbar-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,48,73,0.06);
    font-size: 0.9em;
}
.topbar-cart-item:last-of-type {
    border-bottom: none;
}
.topbar-cart-item-img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,48,73,0.06);
}
.topbar-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.topbar-cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.topbar-cart-item-name {
    font-weight: 500;
    color: #003049;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-cart-item-meta {
    font-size: 0.8em;
    color: rgba(0,48,73,0.65);
}
.topbar-cart-item-total {
    flex-shrink: 0;
    font-weight: 600;
    color: #003049;
}
.topbar-cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    margin-top: 4px;
    border-top: 1px solid rgba(0,48,73,0.1);
    font-weight: 600;
    font-size: 0.95em;
}
.topbar-cart-total-label {
    color: rgba(0,48,73,0.8);
}
.topbar-cart-total-amount {
    color: #e30713;
}
.topbar-cart-view-btn {
    display: block;
    margin: 8px 12px 0;
    padding: 10px 16px;
    text-align: center;
    background: #e30713;
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.05s;
}
.topbar-cart-view-btn:hover {
    background: #b80510;
}

.user-name-short {
    display: none;
}
/* Styling for topbar icons (messages, notifications, user profile) - legacy selectors */
.notifications,
.messages,
.user-profile-icon {
    position: relative;
    cursor: pointer;
    color: #003049;
    font-size: 1.65em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    transition: color 0.25s ease, transform 0.25s ease;
}
.notifications:hover,
.messages:hover,
.user-profile-icon:hover {
    color: #e30713;
    transform: scale(1.12);
}
.notifications .badge,
.messages .badge,
.topbar-dropdown-trigger .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    min-height: 16px;
    padding: 0 4px;
    background-color: #e30713;
    color: #fff;
    border-radius: 50%;
    font-size: 0.65em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
}

/* Dashboard Body */
.dashboard-body {
    padding: 30px;
    flex-grow: 1;
}
.owner-verify-block .card input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0,48,73,0.2);
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 16px;
}
.owner-verify-block .card input[type="text"]:focus {
    outline: none;
    border-color: #e30713;
    box-shadow: 0 0 0 2px rgba(227,7,19,0.15);
}
.owner-verify-block .primary-btn {
    width: 100%;
    padding: 12px 20px;
}
.owner-verify-label {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    color: #003049;
    margin-bottom: 6px;
    margin-top: 14px;
}
.owner-verify-label:first-of-type { margin-top: 0; }
.owner-verify-block .card select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0,48,73,0.2);
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 16px;
    background: #fff;
}
.owner-verify-block .card select:focus {
    outline: none;
    border-color: #e30713;
}
.dashboard-body h1 {
    font-size: 1.8em;
    font-weight: 600;
    color: #003049; /* Set to #003049 */
    margin-bottom: 5px;
}
.greeting-subtitle {
    color: #003049;
    margin-bottom: 30px;
    font-size: 0.95em;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background-color: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,48,73,0.06);
    border: 1px solid rgba(0,48,73,0.06);
    text-align: left;
    position: relative;
}
.stat-card.alert {
    border: 1px solid #e30713;
    background-color: #ffeef0;
}
.stat-card .stat-label {
    color: #003049;
    font-size: 0.9em;
    margin-bottom: 5px;
}
.stat-card .stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #003049; /* Set to #003049 */
    margin-bottom: 5px;
}
.stat-card .stat-subtext,
.stat-card .stat-change {
    font-size: 0.85em;
    color: #888; /* Lighter grey for sub-text */
}
.stat-card .stat-change.green {
    color: #28a745;
    font-weight: 600;
}
/* Icon on stat cards (if images, position absolutely) */
.stat-card::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Customer dashboard – Shopee-style layout (feature strip, categories, deals banner) */
.customer-dashboard .stats-grid {
    margin-bottom: 20px;
}
.customer-feature-strip {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 28px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: thin;
}
.customer-feature-strip::-webkit-scrollbar {
    height: 6px;
}
.customer-feature-tile {
    flex-shrink: 0;
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #003049;
    background: #fff;
    border-radius: 12px;
    padding: 12px 8px 10px;
    border: 1px solid rgba(0,48,73,0.08);
    box-shadow: 0 2px 8px rgba(0,48,73,0.06);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.customer-feature-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,48,73,0.1);
    border-color: rgba(227,7,19,0.2);
    color: #003049;
}
.customer-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fcebeb;
    color: #e30713;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1.1em;
}
.customer-feature-label {
    font-size: 0.7em;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}
.customer-categories-section {
    margin-bottom: 28px;
}
.customer-section-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #003049;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 16px 0;
}
.customer-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}
.customer-category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,48,73,0.06);
    border: 1px solid rgba(0,48,73,0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
    font-family: inherit;
}
.customer-category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,48,73,0.1);
    border-color: rgba(227,7,19,0.25);
}
.customer-category-tile-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}
.customer-category-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.customer-category-tile-name {
    padding: 10px 8px;
    font-size: 0.8em;
    font-weight: 500;
    color: #003049;
    text-align: center;
    line-height: 1.2;
}
.customer-deals-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 28px;
    background: #e30713;
    border-radius: 12px;
    color: #fff;
}
.customer-deals-banner-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.customer-deals-banner-title {
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.customer-deals-banner-sub {
    font-size: 0.85em;
    opacity: 0.95;
}
.customer-deals-see-all {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #fff;
    color: #e30713;
    font-weight: 600;
    font-size: 0.9em;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.customer-deals-see-all:hover {
    background: rgba(255,255,255,0.9);
    color: #b80510;
}

/* Content Grid (Orders + Quick Actions) */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Card base style (product-style clean cards) */
.card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,48,73,0.06);
    border: 1px solid rgba(0,48,73,0.06);
    padding: 24px;
}

/* Today's Orders Section */
.orders-section {
    padding: 0;
}
.orders-section .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
}
.orders-section .card-header h2 {
    font-size: 1.4em;
    font-weight: 600;
    color: #003049; /* Set to #003049 */
    margin: 0;
}
.orders-section .view-all {
    color: #e30713;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
}
.order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
}
.order-item:last-child {
    border-bottom: none;
}

/* Product list with images (customer shop) */
.product-list-with-images .product-item {
    align-items: center;
    gap: 16px;
}
.product-list-with-images .order-details {
    flex: 1;
    min-width: 0;
}
.product-img {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: #fcebeb;
    box-shadow: 0 2px 8px rgba(0,48,73,0.08);
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-status {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    margin-top: 4px;
}
.product-available {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}
.product-unavailable {
    background: rgba(0,48,73,0.08);
    color: rgba(0,48,73,0.6);
}
.disabled-qty {
    color: rgba(0,48,73,0.4);
    font-size: 1.2em;
}

/* Inventory toggle switch */
.inventory-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}
.inventory-add-row input[type="text"],
.inventory-add-row input[type="number"] {
    padding: 10px 14px;
    border: 1px solid rgba(0,48,73,0.2);
    border-radius: 10px;
    font-size: 1em;
    min-width: 120px;
}
.inventory-image-url {
    flex: 1;
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid rgba(0,48,73,0.2);
    border-radius: 10px;
    font-size: 0.95em;
}
.inventory-store-setting-row { margin: 0; }
.inventory-store-credit-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95em;
    color: #003049;
}
.inventory-store-credit-label #store-allow-credit-desc { font-weight: 400; color: rgba(0,48,73,0.85); }
.inventory-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.inventory-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.inventory-item-actions .btn {
    padding: 6px 12px;
    font-size: 0.85em;
}
.inventory-edit-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,48,73,0.1);
}
.inventory-edit-form input {
    padding: 8px 12px;
    border: 1px solid rgba(0,48,73,0.2);
    border-radius: 8px;
    font-size: 0.95em;
}
.inventory-edit-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    width: 100%;
}
.inventory-edit-form input[name="edit-name"] { min-width: 140px; }
.inventory-edit-form input[name="edit-price"] { width: 80px; }
.inventory-edit-form .inventory-edit-image-input { min-width: 160px; flex: 1; }
.inventory-image-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
    margin-top: 8px;
}
.inventory-image-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.inventory-add-image-btn, .inventory-take-picture-btn {
    padding: 8px 14px;
    font-size: 0.9em;
}
.inventory-camera-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.inventory-camera-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    cursor: pointer;
}
.inventory-camera-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 100%;
    width: 400px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.inventory-camera-modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 1.1em;
    color: #003049;
}
.inventory-camera-video-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.inventory-camera-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.inventory-camera-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.inventory-camera-actions .btn { padding: 10px 20px; }
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    background-color: rgba(0,48,73,0.2);
    border-radius: 26px;
    transition: 0.25s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #e30713;
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}
.toggle-label {
    font-size: 0.9em;
    font-weight: 500;
    color: #003049;
}
.order-empty-msg {
    color: #003049;
}
.order-details p {
    margin: 0;
    font-size: 0.9em;
}
.order-details p:first-child {
    font-weight: 600;
    color: #003049; /* Set to #003049 */
    margin-bottom: 5px;
}
.order-details .customer-name {
    color: #003049;
    margin-bottom: 3px;
}
.order-details .order-info {
    color: #003049;
    font-size: 0.8em;
}
.status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 10px;
}
.status.ready {
    background-color: #ffeef0;
    color: #003049;
}
.status.preparing {
    background-color: #ffeef0;
    color: #003049;
}
.status.new {
    background-color: #ffeef0;
    color: #003049;
}
.status.pending-approval {
    background-color: #fff4e6;
    color: #b35c00;
}
.order-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.add-to-cart-btn {
    padding: 8px 14px;
    font-size: 0.85em;
    background: #e30713;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.add-to-cart-btn:hover {
    background: #b80510;
}
.add-to-cart-btn i {
    margin-right: 6px;
}

/* "Added to cart" toast */
.cart-added-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    background: #003049;
    color: #fff;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,48,73,0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
}
.cart-added-toast.cart-toast-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.order-price {
    font-size: 1.1em;
    font-weight: 600;
    color: #003049; /* Set to #003049 */
    margin: 0;
}
.btn.complete-btn {
    background-color: #e30713;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.2s;
}
.btn.complete-btn:hover {
    background-color: #c0050d;
}
.btn.approve-btn {
    background-color: #2e7d32;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.2s;
}
.btn.approve-btn:hover {
    background-color: #1b5e20;
}
.btn.reject-btn {
    background-color: #f5f5f5;
    color: #c62828;
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.2s, color 0.2s;
}
.btn.reject-btn:hover {
    background-color: #ffebee;
}
.btn.update-btn {
    background-color: #f0f0f0;
    color: #e30713;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.2s, color 0.2s;
}
.btn.update-btn:hover {
    background-color: #e0e0e0;
    color: #c0050d;
}

/* Quick Actions Section */
.quick-actions-section h2 {
    font-size: 1.4em;
    font-weight: 600;
    color: #003049; /* Set to #003049 */
    margin-bottom: 20px;
}
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}
.btn.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #003049; /* Set to #003049 */
    border: 1px solid #ccc;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn.action-btn i {
    margin-right: 10px;
    font-size: 1.1em;
    color: #003049; /* Set action button icons to #003049 */
}
.btn.action-btn.primary-action {
    background-color: #e30713;
    color: #fff;
    border-color: #e30713;
}
.btn.action-btn.primary-action:hover {
    background-color: #c0050d;
    border-color: #c0050d;
}
.btn.action-btn:hover:not(.primary-action) {
    background-color: #e0e0e0;
}

.quick-alert {
    padding: 20px;
    margin-bottom: 15px;
}
.quick-alert .alert-title {
    font-weight: 600;
    color: #003049; /* Set to #003049 */
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-size: 0.95em;
}
.quick-alert .alert-title i {
    margin-right: 10px;
    color: #003049; /* Set alert title icons to #003049 */
    font-size: 1.1em;
}
.quick-alert .alert-message {
    color: #003049;
    font-size: 0.85em;
    margin-bottom: 10px;
}
.quick-alert .alert-link {
    color: #e30713;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
}

/* Responsive Design */

/* Site header responsive */
@media (max-width: 992px) {
    .product-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .site-search {
        max-width: 200px;
    }
    .site-action-label {
        display: none;
    }
    .site-menu-toggle {
        display: flex;
    }
}
@media (max-width: 576px) {
    .site-header-top {
        flex-wrap: wrap;
    }
    .site-search {
        order: 3;
        max-width: none;
        width: 100%;
    }
    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* General Responsive for main landing page */
@media (max-width: 1024px) {
    .hero-section {
        padding: 32px 16px 60px;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 28px 20px 32px;
        text-align: left;
    }
    .contact-wrapper,
    .about-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 28px 12px 56px;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 24px 20px 28px;
        text-align: left;
    }
    .hero-tagline {
        font-size: 0.9em;
        margin-bottom: 10px;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section .subtitle,
    .features-intro-section p,
    .cta-section p,
    .about-contact-section p {
        font-size: 1em;
    }
    .about-contact-section {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    .about-block,
    .contact-block {
        text-align: center;
    }
    .about-contact-section .contact-item {
        justify-content: center;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
    .large-btn {
        max-width: 300px;
    }
    .features-intro-section h2,
    .cta-section h2,
    .about-contact-section h2 {
        font-size: 1.9em;
    }
    .features-grid,
    .product-cards-grid {
        grid-template-columns: 1fr;
    }
    .feature-card .icon-box {
        height: 120px;
    }
    .cta-section,
    .about-contact-section {
        border-radius: 20px 20px 0 0;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6em;
    }
    .hero-logo-main {
        height: 48px;
    }
    .header-logo {
        height: 28px;
    }
    .hero-section .subtitle {
        font-size: 0.92em;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.95em;
    }
    .large-btn {
        padding: 14px 28px;
        font-size: 1em;
    }
    .features-intro-section h2,
    .cta-section h2,
    .about-contact-section h2 {
        font-size: 1.65em;
    }
    .section-badge {
        font-size: 0.8em;
        padding: 5px 12px;
    }
    .product-cards-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive for Dashboard */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        align-items: center;
    }
    .sidebar-logo {
        height: 30px;
    }
    .sidebar-nav .nav-item,
    .sidebar-settings .nav-item {
        justify-content: center;
        padding: 12px 0;
    }
    .sidebar-nav .nav-item span,
    .sidebar-settings .nav-item span {
        display: none;
    }
    .sidebar-nav .nav-item i,
    .sidebar-settings .nav-item i {
        margin-right: 0;
        font-size: 1.3em;
    }
    /* Adjusted active state for collapsed sidebar */
    .sidebar-nav .nav-item.active,
    .sidebar-settings .nav-item.active {
        border-right: none !important; /* Ensure no right border on collapsed view */
        border-left: 4px solid #e30713 !important; /* Move border to left on collapsed view */
    }
    .search-bar {
        width: 300px;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .orders-section, .quick-actions-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }
    .search-bar {
        width: 100%;
    }
    .topbar-right {
        order: -1;
        width: 100%;
        justify-content: flex-end;
    }
    .dashboard-body {
        padding: 20px;
    }
    .dashboard-body h1 {
        font-size: 1.5em;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .order-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
@media (max-width: 480px) {
    .sidebar {
        display: none;
    }
    .dashboard-container {
        display: block;
    }
    .dashboard-body {
        padding: 15px;
    }
    .topbar {
        padding: 10px 15px;
    }
    .topbar-right {
        gap: 15px;
    }
    .customer-categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .customer-feature-tile {
        width: 64px;
    }
    .customer-feature-icon {
        width: 36px;
        height: 36px;
        font-size: 1em;
    }
}

/* Login Page Specific Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5; /* Light background */
    padding: 20px;
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.login-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 450px;
    width: 100%;
}

.login-logo {
    display: block; /* Important for margin: auto to work */
    margin-left: auto;
    margin-right: auto;
    height: 60px; /* Adjust as needed */
    margin-bottom: 30px;
}

.login-box h1 {
    font-size: 2em;
    font-weight: 700;
    color: #003049;
    margin-bottom: 10px;
}

.login-box p {
    font-size: 1em;
    color: #003049;
    margin-bottom: 30px;
}

.login-option {
    margin-bottom: 20px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #003049; /* Assuming dark blue text */
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}

/* If using Font Awesome Google icon, you might need specific size here */
.google-btn .fab {
    font-size: 1.2em; /* Adjust size for Font Awesome icon */
    margin-right: 10px;
}

.google-btn:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #003049;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.or-divider:not(:empty)::before {
    margin-right: .25em;
}

.or-divider:not(:empty)::after {
    margin-left: .25em;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    color: #003049; /* Set input text color */
}

.login-form input::placeholder {
    color: #003049;
    opacity: 0.7;
}

.login-form button {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: #e30713;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-form button:hover {
    background-color: #c0050d;
}

.forgot-password {
    display: block;
    margin-top: 15px;
    font-size: 0.9em;
    color: #e30713;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.signup-link {
    margin-top: 30px;
    font-size: 0.9em;
    color: #003049;
}

.signup-link a {
    color: #e30713;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for Login Page */
@media (max-width: 500px) {
    .login-box {
        padding: 25px;
        margin: 10px;
    }
    .login-box h1 {
        font-size: 1.7em;
    }
    .login-box p {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .google-btn,
    .login-form input,
    .login-form button {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .google-btn img {
        height: 18px;
    }
}

/* Create Account Page Specific Styles */
.create-account-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    min-height: 100vh;       /* Takes full viewport height */
    background-color: #f0f2f5; /* Light background */
    padding: 20px;
    box-sizing: border-box;
}

.create-account-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 500px; /* Slightly wider than login for two buttons */
    width: 100%;
}

.create-account-box h1 {
    font-size: 2em;
    font-weight: 700;
    color: #003049;
    margin-bottom: 10px;
}

.create-account-box p {
    font-size: 1em;
    color: #003049;
    margin-bottom: 30px;
}

.account-type-buttons {
    display: flex;
    flex-direction: column; /* Changed to column to stack buttons */
    justify-content: center; /* Center horizontally if items aren't full width */
    gap: 15px; /* Space between buttons */
    margin-bottom: 30px;
}

.account-type-buttons .btn {
    width: 100%; /* Make buttons full width */
    max-width: 300px; /* Constrain width for a nicer look if full width is too wide */
    margin-left: auto; /* Center buttons within their container */
    margin-right: auto; /* Center buttons within their container */
}

/* Re-purpose .login-link for "Already have an account?" */
.login-link {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #003049;
}

.login-link a {
    color: #e30713;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for Create Account Page */
@media (max-width: 500px) {
    .create-account-box {
        padding: 25px;
        margin: 10px;
    }
    .create-account-box h1 {
        font-size: 1.7em;
    }
    .create-account-box p {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .account-type-buttons .btn {
        font-size: 0.9em;
        padding: 12px 15px;
    }
}

.auth-switch {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    color: #c62828;
}

/* Cart page (Shopee-style) */
.cart-page .cart-table-wrap {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,48,73,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}
.cart-header-row {
    display: grid;
    grid-template-columns: 40px 1fr 100px 140px 100px 120px;
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
    background: #f5f5f5;
    font-size: 0.85em;
    font-weight: 600;
    color: #003049;
}
.cart-col-check { margin: 0; display: flex; align-items: center; }
.cart-col-product { min-width: 0; }
.cart-col-unit { text-align: right; }
.cart-col-qty { text-align: center; }
.cart-col-total { text-align: right; }
.cart-col-actions { text-align: right; }
.cart-seller-section {
    border-top: 1px solid rgba(0,48,73,0.08);
}
.cart-seller-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0,48,73,0.04);
    font-weight: 600;
    color: #003049;
}
.cart-seller-check { margin: 0; }
.cart-seller-name { flex: 1; }
.cart-item-list { padding: 0; }
.cart-item-row {
    display: grid;
    grid-template-columns: 40px 1fr 100px 140px 100px 120px;
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid rgba(0,48,73,0.06);
    min-height: 80px;
}
.cart-item-row .cart-col-product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.cart-item-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { min-width: 0; }
.cart-item-name { font-size: 0.9em; color: #003049; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-row .cart-unit-price { font-size: 0.95em; }
.cart-item-row .cart-col-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.cart-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0,48,73,0.2);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    line-height: 1;
    color: #003049;
    transition: background 0.2s, border-color 0.2s;
}
.cart-qty-btn:hover { background: #f5f5f5; border-color: #e30713; color: #e30713; }
.cart-qty-input {
    width: 48px;
    height: 32px;
    text-align: center;
    border: 1px solid rgba(0,48,73,0.2);
    border-radius: 6px;
    font-size: 0.9em;
}
.cart-item-total { font-weight: 600; color: #003049; }
.cart-btn-delete { color: rgba(0,48,73,0.7); font-size: 0.9em; padding: 4px 8px; }
.cart-btn-delete:hover { color: #e30713; }
.cart-empty {
    padding: 48px 20px;
    text-align: center;
    color: rgba(0,48,73,0.7);
}
.cart-empty .btn { margin-top: 16px; }
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid rgba(0,48,73,0.08);
    border-radius: 12px;
}
.cart-footer-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-footer-select { margin: 0; font-size: 0.9em; color: #003049; cursor: pointer; }
.btn-text { background: none; border: none; color: rgba(0,48,73,0.8); cursor: pointer; font-size: 0.9em; padding: 4px 8px; }
.btn-text:hover { color: #e30713; }
.btn-link-red { color: #e30713; text-decoration: none; font-size: 0.9em; font-weight: 500; }
.btn-link-red:hover { text-decoration: underline; }
.cart-footer-right { display: flex; align-items: center; gap: 20px; }
.cart-footer-total-label { font-size: 1em; color: #003049; }
.cart-footer-total-label strong { color: #e30713; }
.btn-checkout {
    padding: 12px 32px;
    background: #e30713;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-checkout:hover:not(:disabled) { background: #b80510; }
.btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 768px) {
    .cart-header-row,
    .cart-item-row {
        grid-template-columns: 36px 1fr 80px 1fr 80px;
        gap: 8px;
        padding: 10px 12px;
    }
    .cart-header-row .cart-col-actions,
    .cart-item-row .cart-col-actions { display: none; }
    .cart-item-row .cart-col-product { flex-direction: column; align-items: flex-start; }
    .cart-footer { flex-direction: column; align-items: stretch; }
    .cart-footer-right { justify-content: space-between; }
}

/* Modal overlay for payment QR etc. */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 48, 73, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay .modal-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.modal-overlay .owner-verify-label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 500;
    color: #003049;
}
.modal-overlay input[type="url"],
.modal-overlay input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}
.qr-upload-area { margin-bottom: 8px; }
.qr-upload-area.qr-upload-dragover .qr-upload-placeholder { border-color: #e30713; background: #fcebeb; }
.qr-upload-placeholder { transition: background 0.2s, border-color 0.2s; }