:root {
    --primary: #c29d58;
    --primary-hover: #ad8643;
    --dark: #1f1f23;
    --dark-light: #2c2c32;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-400: #ced4da;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --success: #2b8a3e;
    --success-bg: #ebfbee;
    --danger: #c92a2a;
    --danger-bg: #fff5f5;
    --warning: #e67e22;
    --info: #228be6;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--light);
    color: var(--gray-800);
    line-height: 1.6;
}

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

/* Public Website Styles */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-800);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Dropdown Menu styling */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu li {
    width: 100%;
    display: block;
    margin: 0;
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.cart-icon-wrapper {
    position: relative;
    font-size: 1.3rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1f 0%, #2f2f38 100%);
    color: var(--white);
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    color: var(--primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Feature grid */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray-600);
}

/* Footer styling */
.site-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 1.5rem 2rem;
    margin-top: 5rem;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-column p,
.footer-column li {
    color: var(--gray-400);
    margin-bottom: 0.8rem;
    list-style: none;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-light);
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Admin Dashboard CSS */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background-color: var(--dark);
    color: var(--white);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 99;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dark-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.sidebar-header span {
    color: var(--primary);
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0;
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-category-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #a0aec0;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    letter-spacing: 0.5px;
    outline: none;
    transition: color 0.2s;
    user-select: none;
}

.sidebar-category-toggle:hover,
.sidebar-category-toggle:focus {
    color: var(--white);
}

.sidebar-category-toggle::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.sidebar-category-toggle[aria-expanded="false"]::after {
    transform: rotate(-135deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 1200px;
    overflow: hidden;
    transition: max-height 0.25s ease-out, opacity 0.25s ease-out;
    opacity: 1;
}

.sidebar-submenu.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    color: var(--gray-400);
    border-left: 4px solid transparent;
}

.sidebar-item a:hover,
.sidebar-item.active a {
    color: var(--white);
    background-color: var(--dark-light);
}

.sidebar-item.active a {
    border-left-color: var(--primary);
    color: var(--primary);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--dark-light);
}

/* Main Workspace */
.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    height: 70px;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-shadow: var(--shadow);
}

.topbar-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Content Area */
.admin-content {
    padding: 2.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.breadcrumb {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin-right: 0.5rem;
    color: var(--gray-400);
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 500;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 3px solid var(--primary);
}

.stat-card-left h4 {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-card-left p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-card-icon {
    font-size: 2rem;
    color: var(--primary);
}

/* Table Card / Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background-color: var(--gray-100);
    font-weight: 600;
    color: var(--gray-800);
}

.table tr:hover {
    background-color: var(--gray-100);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-success { background-color: var(--success-bg); color: var(--success); }
.badge-danger { background-color: var(--danger-bg); color: var(--danger); }
.badge-warning { background-color: #fff9db; color: var(--warning); }

/* Forms styling */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-400);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(194, 157, 88, 0.15);
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Settings navigation tabs */
.settings-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 2rem;
}

.settings-tab {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.settings-tab.active,
.settings-tab:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(43, 138, 62, 0.2);
}

.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(201, 42, 42, 0.2);
}

/* Toast popup */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: var(--white);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideIn 0.3s ease forwards;
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-danger { border-left-color: var(--danger); }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Login Page Layout */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #101012 0%, #202024 100%);
    padding: 1.5rem;
}

.login-card {
    background-color: var(--white);
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.login-logo span {
    color: var(--primary);
}

.login-subtitle {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Mobile Sidebar Menu Button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
    .admin-sidebar {
        display: none; /* In a real project we toggle class, for this skeleton we hide/show with simple JS */
    }
    
    .admin-sidebar.mobile-open {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
    }
    
    .menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

/* Placeholder Page */
.placeholder-container {
    text-align: center;
    padding: 5rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.placeholder-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.placeholder-text {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Error Pages Style */
.error-container {
    text-align: center;
    padding: 6rem 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.error-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.error-description {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Mobile App Layout & Styling */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    width: 20%;
    height: 100%;
    transition: var(--transition);
}

.mobile-bottom-nav-item i {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.mobile-bottom-nav-item.active {
    color: var(--primary);
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    bottom: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1001;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.open {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    padding: 1.2rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.drawer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.drawer-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.drawer-menu a:hover,
.drawer-menu a.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 999;
    }
    .header-container {
        padding: 0.8rem 1rem !important;
    }
    .desktop-only-nav, .desktop-only-actions, .header-actions {
        display: none !important;
    }
    .menu-btn-mobile, .header-actions-mobile {
        display: flex !important;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 60px !important;
    }
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}
