
/* Global Styles */

/* Notification Styles */

.notification-badge {
    display: inline-block;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 5px;
    font-weight: bold;
}

.message-badge {
    display: inline-block;
    background-color: #1e90ff;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 5px;
    font-weight: bold;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e3f2fd;
}

.notification-item .notification-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.notification-item .notification-message {
    margin-top: 5px;
}

.notification-item .notification-actions {
    margin-top: 10px;
}

/* Message System Styles */
.messages-container {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.message.sent {
    background-color: #dcf8c6;
    margin-left: auto;
}

.message.received {
    background-color: #f1f0f0;
}

.message .message-header {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.message .message-content {
    word-break: break-word;
}

.message .message-time {
    font-size: 0.7rem;
    color: #6c757d;
    text-align: right;
    margin-top: 5px;
}

.conversation-list {
    list-style: none;
    padding: 0;
}

.conversation-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.conversation-item:hover {
    background-color: #f8f9fa;
}

.conversation-item.active {
    background-color: #e3f2fd;
}

.conversation-item .unread-count {
    background-color: #1e90ff;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 5px;
}
:root {
    --primary-blue: #a8d8ea;
    --secondary-blue: #71c9ce;
    --primary-orange: #ffb6b9;
    --primary-green: #b5e8c3;
    --primary-yellow: #f6eac2;
    --dark-text: #333333;
    --light-text: #ffffff;
    --light-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Navigation */
header {
    background-color: var(--primary-yellow); /* changed to yellow */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo img {
        
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
}

.logo a:hover {
    color: var(--secondary-blue);
}

.logo img {
    vertical-align: middle;
}
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-blue);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 12px;
}
.search-form {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border-radius: 20px;
    padding: 6px 12px;
    border: 1px solid var(--secondary-blue);
}
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 14px;
    outline: none;
}
.search-btn {
    border: none;
    background: transparent;
    color: var(--secondary-blue);
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .search-container {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

@media (max-width: 600px) {
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        background-color: var(--primary-yellow);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        border-top: 1px solid rgba(0,0,0,0.08);
    }
    .nav-links li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .nav-links a {
        display: block;
        padding: 12px 16px;
        width: 100%;
        font-size: 16px;
        border-radius: 8px;
        margin: 0 16px;
    }
    .nav-links.active {
        max-height: 70vh;
        padding: 16px 0;
        overflow-y: auto;
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom));
    background-color: rgba(246, 234, 194, 0.7);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(0,0,0,0.08);
    z-index: 1000;
    display: none;
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    margin: 0;
    padding: 0 4px;
    list-style: none;
}
.mobile-bottom-nav li {
    flex: 1 1 auto;
    min-width: 0;
}
.mobile-bottom-nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 6px;
    border-radius: 8px;
    width: 100%;
}
.mobile-bottom-nav a i {
    font-size: 20px;
}
.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active {
    color: var(--secondary-blue);
    background-color: rgba(255,255,255,0.4);
}

.mobile-bottom-label {
    display: block;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    body,
    .main-wrapper {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

/* Show bottom nav also on small tablets */
@media (max-width: 992px) {
    .mobile-bottom-nav {
        display: block;
    }
    body,
    .main-wrapper {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 375px) {
    .mobile-bottom-nav a {
        padding: 4px 2px;
        gap: 3px;
    }
    .mobile-bottom-nav a i {
        font-size: 18px;
    }
    .mobile-bottom-label {
        display: block;
        font-size: 0.64rem;
    }
    .mobile-bottom-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}
table th,
table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
@media (max-width: 768px) {
    table {
        width: 100%;
        font-size: 13px;
    }
    table th,
    table td {
        padding: 8px 10px;
    }
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(to right, var(--primary-blue), var(--primary-green));
    border-radius: 10px;
    margin: 20px 0;
    color: var(--dark-text);
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.welcome-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--secondary-blue);
    color: var(--light-text);
}

.btn-secondary {
    background-color: var(--primary-orange);
    color: var(--dark-text);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: none;
    border: 2px solid var(--secondary-blue);
    color: var(--secondary-blue);
}

.btn-outline:hover {
    background: var(--secondary-blue);
    color: var(--light-text);
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 50px 0;
}

.feature {
    flex-basis: 30%;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature:nth-child(1) {
    background-color: var(--primary-blue);
}

.feature:nth-child(2) {
    background-color: var(--primary-green);
}

.feature:nth-child(3) {
    background-color: var(--primary-yellow);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.feature h3 {
    margin-bottom: 15px;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.password-toggle:hover {
    color: #333;
}

/* Login form polish */
.auth-form-card {
    max-width: 460px;
    padding: 34px 30px 28px;
    border: 1px solid #e7eef2;
    box-shadow: 0 14px 30px rgba(20, 41, 56, 0.08);
}

.auth-title {
    margin-bottom: 6px;
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
}

.auth-subtitle {
    text-align: center;
    color: #5e6f7d;
    font-size: 14px;
    margin-bottom: 22px;
}

.auth-form .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #243645;
}

.auth-form .form-control {
    border-radius: 10px;
    border-color: #d9e3ea;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .form-control:focus {
    border-color: #71c9ce;
    box-shadow: 0 0 0 3px rgba(113, 201, 206, 0.2);
}

.auth-submit-btn {
    width: 100%;
    margin: 4px 0 0;
    border-radius: 10px;
    padding: 12px 16px;
}

.auth-meta {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    color: #4c5c68;
}

.auth-meta a {
    color: #2f8e93;
    font-weight: 600;
    text-decoration: none;
}

.auth-meta a:hover {
    text-decoration: underline;
}

.role-selection {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.role-selection label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info, .product-details {
    padding: 15px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-price {
    font-weight: bold;
    color: var(--secondary-blue);
    margin-bottom: 10px;
}

.product-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-yellow);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Messages */
.message-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.message-sent {
    background-color: var(--primary-blue);
    margin-left: 20%;
}

.message-received {
    background-color: var(--primary-yellow);
    margin-right: 20%;
}

.message-time {
    font-size: 12px;
    color: #777;
    text-align: right;
}

/* Footer */
footer {
    background-color: var(--primary-yellow);
    color: var(--dark-text);
    padding: 40px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 16px;
}

.footer-section {
    flex: 1;
    margin: 0 20px;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    padding: 6px 8px;
    border-radius: 6px;
}

.footer-section ul li a:hover {
    color: var(--secondary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #777;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    footer {
        padding: 16px 0 12px;
    }
    .footer-content {
        padding: 0 12px;
        gap: 10px;
        text-align: center;
    }
    .footer-section {
        margin: 6px 0;
    }
    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .footer-section ul li a {
        display: inline-block;
        padding: 8px 10px;
        border-radius: 6px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .footer-bottom {
        padding-top: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 12px 0 10px;
    }
    .footer-content {
        padding: 0 10px;
        gap: 8px;
    }
    .footer-section h3 {
        font-size: 13px;
    }
    .footer-section ul li a {
        padding: 6px 8px;
        font-size: 13px;
    }
    .footer-bottom {
        padding-top: 10px;
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 15px;
    }
    
    .navbar {
        flex-direction: column;
        padding: 10px 5%;
    }
    
    .nav-links {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .features {
        flex-direction: column;
    }
    
    .feature {
        margin-bottom: 20px;
        flex-basis: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .form-container {
        margin: 20px auto;
        padding: 20px;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        margin: 15px 0;
    }
    
    .gallery-view {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 18px;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        margin: 5px 0;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .form-container {
        padding: 15px;
    }

    .auth-form-card {
        padding: 24px 16px 20px;
        border-radius: 12px;
    }

    .auth-title {
        font-size: 24px;
    }
    
    .role-selection {
        flex-direction: column;
        gap: 10px;
    }
    
    .parallax {
        background-attachment: scroll;
        padding: 20px;
    }
    
    .parallax h1 {
        font-size: 1.5rem !important;
    }
    
    .parallax h2 {
        font-size: 1.2rem !important;
    }
    
    .parallax p {
        font-size: 1rem !important;
    }
    
    .auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-buttons a {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
}

/* Gallery View */
.gallery-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Logo Styles - Larger in header */
.logo-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* Header navbar logo styling */
.navbar .logo-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

/* Login page logo styling */
.login-logo {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Additional responsive styles */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 968px) {
    .product-detail-grid,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .product-detail-grid > div:first-child {
        order: 2;
    }
    
    .product-detail-grid > div:last-child {
        order: 1;
    }
}

@media (max-width: 768px) {
    .messages-container {
        height: 300px;
    }
    
    .conversation-list {
        max-height: 400px;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .message {
        max-width: 90%;
        font-size: 14px;
    }
    
    .notification-item {
        padding: 10px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item > div {
        width: 100%;
    }
    
    .account-layout {
        grid-template-columns: 1fr !important;
    }
    
    form[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
    
    form[style*="flex"] {
        flex-direction: column !important;
    }
    
    div[style*="flex"] {
        flex-direction: column !important;
    }
    
    div[style*="display: flex"] {
        flex-wrap: wrap;
    }
    
    div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    div[style*="gap"][style*="flex"] button,
    div[style*="gap"][style*="flex"] a.btn {
        width: 100%;
    }
}

 

/* Storefront Homepage */
.storefront-page {
    --storefront-bg: #fff8f3;
    --storefront-surface: #ffffff;
    --storefront-surface-soft: #fff2e8;
    --storefront-accent: #f26a2e;
    --storefront-accent-deep: #d94e16;
    --storefront-accent-soft: #ffd7c4;
    --storefront-ink: #1f2937;
    --storefront-muted: #667085;
    --storefront-border: #f1d9ca;
    --storefront-success: #0f8b64;
    background:
        radial-gradient(circle at top left, rgba(255, 193, 153, 0.35), transparent 28%),
        radial-gradient(circle at top right, rgba(242, 106, 46, 0.12), transparent 32%),
        linear-gradient(180deg, #fff6ef 0%, #fffaf7 46%, #fff8f3 100%);
    padding: 28px 0 64px;
}

.storefront-page .container {
    max-width: 1280px;
}

.storefront-hero,
.storefront-section,
.storefront-callout {
    animation: storefrontRise 0.7s ease both;
}

.storefront-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 26px;
    padding: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 237, 0.92)),
        linear-gradient(120deg, rgba(242, 106, 46, 0.08), transparent);
    border: 1px solid rgba(242, 106, 46, 0.14);
    border-radius: 30px;
    box-shadow: 0 26px 60px rgba(217, 78, 22, 0.08);
    overflow: hidden;
    position: relative;
}

.storefront-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 106, 46, 0.16), transparent 68%);
    pointer-events: none;
}

.storefront-kicker,
.storefront-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--storefront-accent-deep);
    font-weight: 800;
}

.storefront-hero-copy h1,
.storefront-section-header h2,
.storefront-callout h2 {
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--storefront-ink);
    line-height: 1.05;
}

.storefront-hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    max-width: 12ch;
    margin: 14px 0 14px;
}

.storefront-lead,
.storefront-section-header p,
.storefront-callout p,
.storefront-empty-copy {
    color: var(--storefront-muted);
    font-size: 1rem;
    max-width: 60ch;
}

.storefront-search-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 200px auto;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
}

.storefront-search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    min-height: 58px;
    background: var(--storefront-surface);
    border-radius: 18px;
    border: 1px solid var(--storefront-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.storefront-search-input i {
    color: var(--storefront-accent);
}

.storefront-search-input input,
.storefront-category-select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--storefront-ink);
    font-size: 0.96rem;
}

.storefront-category-select {
    min-height: 58px;
    padding: 0 16px;
    background: var(--storefront-surface);
    border-radius: 18px;
    border: 1px solid var(--storefront-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.storefront-btn-primary,
.storefront-btn-secondary,
.storefront-btn-clear {
    margin: 0;
    border-radius: 18px;
    padding: 14px 22px;
    box-shadow: none;
}

.storefront-btn-primary {
    background: linear-gradient(135deg, var(--storefront-accent), #ff8b57);
    color: #fff;
}

.storefront-btn-secondary {
    background: var(--storefront-surface-soft);
    color: var(--storefront-accent-deep);
    border: 1px solid var(--storefront-accent-soft);
}

.storefront-btn-clear {
    background: #fff;
    color: var(--storefront-accent-deep);
    border: 1px solid var(--storefront-border);
}

.storefront-hero-actions,
.storefront-callout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.storefront-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.storefront-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--storefront-ink);
    border: 1px solid rgba(242, 106, 46, 0.12);
    font-size: 0.9rem;
}

.storefront-trust-row i {
    color: var(--storefront-accent);
}

.storefront-hero-panel {
    display: grid;
    gap: 18px;
}

.storefront-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.storefront-stat-card,
.storefront-hero-preview,
.storefront-featured-card,
.storefront-product-card,
.storefront-review-card,
.storefront-category-card,
.storefront-callout {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(242, 106, 46, 0.12);
    border-radius: 22px;
}

.storefront-stat-card {
    padding: 18px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.storefront-stat-card strong {
    font-size: 2rem;
    color: var(--storefront-accent-deep);
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

.storefront-stat-card span {
    color: var(--storefront-muted);
    font-size: 0.92rem;
}

.storefront-hero-preview {
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(255, 246, 239, 0.95), rgba(255, 255, 255, 0.98));
}

.storefront-hero-preview h3 {
    margin-bottom: 14px;
    color: var(--storefront-ink);
}

.storefront-mini-product {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
}

.storefront-mini-product + .storefront-mini-product {
    border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.storefront-mini-product img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 18px;
}

.storefront-mini-product strong {
    display: block;
    color: var(--storefront-ink);
}

.storefront-mini-rating,
.storefront-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.storefront-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.storefront-stars span {
    display: inline-block;
    line-height: 1;
}

.storefront-mini-rating span,
.storefront-rating-row span,
.storefront-rating-row small {
    color: var(--storefront-muted);
    font-size: 0.88rem;
}

.storefront-mini-price,
.storefront-price {
    color: var(--storefront-accent-deep);
    font-size: 1.06rem;
    font-weight: 800;
}

.storefront-section {
    margin-top: 28px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(242, 106, 46, 0.1);
    border-radius: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.storefront-section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 20px;
}

.storefront-section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin: 10px 0 6px;
}

.storefront-category-grid,
.storefront-product-grid,
.storefront-review-grid,
.storefront-featured-grid {
    display: grid;
    gap: 18px;
}

.storefront-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.storefront-category-card {
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: linear-gradient(180deg, #fff9f5 0%, #ffffff 100%);
}

.storefront-category-card:hover,
.storefront-product-card:hover,
.storefront-featured-card:hover,
.storefront-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(217, 78, 22, 0.08);
}

.storefront-category-name {
    display: block;
    font-weight: 800;
    color: var(--storefront-ink);
}

.storefront-category-count {
    display: block;
    margin-top: 8px;
    color: var(--storefront-muted);
}

.storefront-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.storefront-product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.storefront-product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #ffe8db, #fff6ef);
}

.storefront-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-rating-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--storefront-accent-deep);
    font-weight: 800;
}

.storefront-product-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    flex: 1;
}

.storefront-product-body h3,
.storefront-featured-card h3,
.storefront-review-card strong {
    color: var(--storefront-ink);
}

.storefront-seller,
.storefront-description {
    color: var(--storefront-muted);
}

.storefront-description {
    font-size: 0.92rem;
}

.storefront-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.storefront-inline-link {
    color: var(--storefront-accent-deep);
    font-weight: 700;
    text-decoration: none;
}

.storefront-inline-link:hover {
    text-decoration: underline;
}

.storefront-featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.storefront-featured-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 16px;
    align-items: center;
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.storefront-featured-card img {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    object-fit: cover;
}

.storefront-featured-card p {
    color: var(--storefront-muted);
    margin: 6px 0;
}

.storefront-review-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.storefront-review-card {
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
}

.storefront-review-head {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.storefront-review-head img {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    object-fit: cover;
}

.storefront-review-meta {
    display: block;
    margin-top: 4px;
    color: var(--storefront-muted);
    font-size: 0.88rem;
}

.storefront-review-copy {
    color: var(--storefront-ink);
    margin-bottom: 14px;
}

.storefront-review-reply {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(242, 106, 46, 0.08);
    border: 1px solid rgba(242, 106, 46, 0.1);
}

.storefront-review-reply strong {
    color: var(--storefront-accent-deep);
}

.storefront-review-reply p {
    margin-top: 6px;
    color: var(--storefront-ink);
}

.storefront-empty-state {
    text-align: center;
    padding: 34px 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px dashed var(--storefront-border);
}

.storefront-empty-state.compact {
    padding: 24px 18px;
}

.storefront-empty-state i {
    font-size: 1.8rem;
    color: var(--storefront-accent);
    margin-bottom: 10px;
}

.storefront-empty-state h3 {
    color: var(--storefront-ink);
    margin-bottom: 6px;
}

.storefront-empty-state p {
    color: var(--storefront-muted);
}

.storefront-callout {
    margin-top: 30px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 247, 241, 0.96), rgba(255, 255, 255, 0.92)),
        linear-gradient(135deg, rgba(242, 106, 46, 0.08), transparent);
}

.storefront-callout h2 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    margin: 12px 0 8px;
}

@keyframes storefrontRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .storefront-hero {
        grid-template-columns: 1fr;
    }

    .storefront-search-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .storefront-page {
        padding: 18px 0 42px;
    }

    .storefront-hero,
    .storefront-section,
    .storefront-callout {
        padding: 20px;
        border-radius: 22px;
    }

    .storefront-stat-grid,
    .storefront-featured-grid,
    .storefront-review-grid {
        grid-template-columns: 1fr;
    }

    .storefront-callout,
    .storefront-section-header,
    .storefront-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .storefront-featured-card {
        grid-template-columns: 84px 1fr;
    }

    .storefront-featured-card img {
        width: 84px;
        height: 84px;
    }
}

@media (max-width: 520px) {
    .storefront-product-grid,
    .storefront-category-grid {
        grid-template-columns: 1fr;
    }

    .storefront-mini-product,
    .storefront-review-head {
        grid-template-columns: 1fr;
    }

    .storefront-mini-product img,
    .storefront-review-head img {
        width: 100%;
        max-width: 96px;
        height: 96px;
    }

    .storefront-btn-primary,
    .storefront-btn-secondary,
    .storefront-btn-clear {
        width: 100%;
        text-align: center;
    }
}

/* Shared Marketplace Chrome */
.app-shell {
    background:
        radial-gradient(circle at top left, rgba(255, 214, 189, 0.18), transparent 22%),
        linear-gradient(180deg, #fffaf6 0%, #f8fafc 34%, #f8fafc 100%);
}

.marketplace-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 250, 246, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(242, 106, 46, 0.12);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.marketplace-navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.marketplace-navbar-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.marketplace-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
    text-decoration: none;
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: visible;
    color: #d94e16;
    background: transparent;
    box-shadow: none;
}

.brand-mark .logo-image {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
}

.brand-mark i {
    font-size: 1.2rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a5a44;
}

.brand-name {
    font-size: 1.26rem;
    font-weight: 800;
    color: #1f2937;
}

.nav-mode-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(242, 106, 46, 0.14);
    background: rgba(242, 106, 46, 0.08);
    color: #d94e16;
    font-size: 0.82rem;
    font-weight: 700;
}

.marketplace-nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 12px 0 14px;
    border-radius: 18px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.desktop-nav-search {
    flex: 1 1 320px;
}

.marketplace-nav-search i {
    color: #d94e16;
}

.marketplace-nav-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #1f2937;
    font-size: 0.95rem;
}

.marketplace-nav-search button {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f26a2e, #ff8b57);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.marketplace-desktop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.role-guest .desktop-nav-search {
    flex: 1 1 560px;
}

.role-guest .marketplace-desktop-actions {
    margin-left: 0;
}

@media (min-width: 993px) {
    .role-buyer .marketplace-navbar {
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 0;
    }

    .role-buyer .marketplace-navbar-bar {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .role-buyer .marketplace-brand-wrap {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .role-buyer .desktop-nav-search {
        min-width: 0;
        flex: 1 1 auto;
        flex-basis: auto;
        order: 0;
        margin-left: 6px;
    }

    .role-buyer .marketplace-desktop-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 8px;
        margin-left: 0;
    }

    .role-buyer .nav-utility-pill {
        min-height: 44px;
        padding: 0 12px;
    }

    .role-buyer .nav-utility-icon {
        width: 44px;
        min-height: 44px;
    }

    .role-guest .marketplace-navbar {
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 0;
    }

    .role-guest .marketplace-navbar-bar {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .role-guest .marketplace-brand-wrap {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .role-guest .brand-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        white-space: nowrap;
    }

    .role-guest .nav-mode-pill {
        display: none;
    }

    .role-guest .brand-eyebrow {
        display: block;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        line-height: 1;
        margin: 0;
    }

    .role-guest .brand-name {
        display: block;
        white-space: nowrap;
        font-size: 1.14rem;
        line-height: 1;
    }

    .role-guest .desktop-nav-search {
        min-width: 0;
        flex: 1 1 auto;
        margin-left: 6px;
    }

    .role-guest .marketplace-desktop-actions {
        flex: 0 0 auto;
        gap: 8px;
    }

    .role-admin .marketplace-navbar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .role-admin .marketplace-navbar-bar {
        width: auto;
        max-width: 100%;
        flex: 0 1 auto;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 12px;
        min-width: 0;
        margin: 0 auto;
    }

    .role-admin .marketplace-brand-wrap {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 10px;
        min-width: 0;
    }

    .role-admin .marketplace-nav-links-inline {
        display: flex;
        flex: 0 1 auto;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .role-admin .marketplace-nav-links-inline::-webkit-scrollbar {
        display: none;
    }

    .role-admin .marketplace-desktop-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 8px;
        margin-left: 0;
    }

    .role-admin .marketplace-navbar-main {
        display: none;
    }

    .role-admin .marketplace-nav-link {
        min-height: 42px;
        padding: 9px 12px;
    }

    .role-admin .nav-utility-pill {
        min-height: 44px;
        padding: 0 12px;
    }

    .role-admin .marketplace-user-chip {
        display: none;
    }

    .role-seller .marketplace-navbar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .role-seller .marketplace-navbar-bar {
        flex: 0 1 auto;
        flex-wrap: nowrap;
        gap: 12px;
        min-width: 0;
    }

    .role-seller .marketplace-brand-wrap {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 10px;
        min-width: 0;
    }

    .role-seller .marketplace-nav-links-inline {
        display: flex;
        flex: 0 1 auto;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .role-seller .marketplace-desktop-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 8px;
        margin-left: 0;
    }

    .role-seller .marketplace-navbar-main {
        display: none;
    }

    .role-seller .marketplace-nav-link {
        min-height: 42px;
        padding: 9px 12px;
    }

    .role-seller .nav-utility-pill {
        min-height: 44px;
        padding: 0 12px;
    }

    .role-seller .nav-utility-icon {
        width: 44px;
        min-height: 44px;
    }

    .role-seller .marketplace-user-chip {
        display: none;
    }
}

.nav-utility-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    color: #344054;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.nav-utility-link i {
    width: 1.1em;
    text-align: center;
    flex-shrink: 0;
}

.nav-utility-link:hover,
.marketplace-nav-link:hover,
.mobile-nav-link:hover,
.marketplace-footer-links a:hover {
    transform: translateY(-1px);
}

.nav-utility-icon,
.nav-utility-pill,
.nav-utility-pill-primary {
    border: 1px solid rgba(31, 41, 55, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.04);
}

.nav-utility-icon {
    width: 46px;
    padding: 0;
}

.nav-utility-pill-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #f26a2e, #ff8b57);
    color: #ffffff;
}

.nav-utility-text {
    min-height: auto;
    padding: 0 6px;
    color: #667085;
}

.nav-utility-link.is-active {
    color: #d94e16;
    border-color: rgba(242, 106, 46, 0.18);
    background: rgba(242, 106, 46, 0.09);
}

.nav-link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f26a2e;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.nav-utility-icon .nav-link-badge,
.mobile-nav-icon-wrap .nav-link-badge {
    position: absolute;
    top: -6px;
    right: -7px;
}

.marketplace-navbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.marketplace-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.marketplace-nav-links-inline {
    display: none;
}

.marketplace-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #344054;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.marketplace-nav-link.is-active {
    color: #d94e16;
    background: rgba(242, 106, 46, 0.1);
    border-color: rgba(242, 106, 46, 0.16);
}

.marketplace-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    background: rgba(255, 255, 255, 0.84);
    color: #667085;
    font-size: 0.9rem;
}

.marketplace-user-chip strong {
    color: #1f2937;
}

.marketplace-user-label {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #1f2937;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.marketplace-mobile-panel {
    display: none;
}

.marketplace-footer {
    margin-top: 48px;
    padding: 48px 20px 24px;
    background:
        linear-gradient(180deg, rgba(255, 245, 238, 0.92), rgba(255, 255, 255, 0.98)),
        radial-gradient(circle at top left, rgba(242, 106, 46, 0.08), transparent 28%);
    border-top: 1px solid rgba(242, 106, 46, 0.12);
}

.marketplace-footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.marketplace-footer-group {
    min-width: 0;
}

.marketplace-footer-toggle {
    display: none;
}

.marketplace-footer-panel {
    min-width: 0;
}

.marketplace-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f2937;
    text-decoration: none;
}

.footer-brand-link strong {
    display: block;
    font-size: 1.08rem;
}

.footer-brand-link small,
.marketplace-footer-brand p,
.marketplace-footer-bottom {
    color: #667085;
}

.footer-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f26a2e, #ff8b57);
    box-shadow: 0 18px 36px rgba(217, 78, 22, 0.16);
}

.footer-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-feature-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(242, 106, 46, 0.12);
    background: rgba(255, 255, 255, 0.74);
    color: #8a5a44;
    font-size: 0.82rem;
    font-weight: 700;
}

.marketplace-footer-links h3 {
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 1rem;
}

.marketplace-footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.marketplace-footer-links a {
    display: inline-block;
    color: #667085;
    text-decoration: none;
    transition: color 0.22s ease, transform 0.22s ease;
}

.marketplace-footer-links a:hover {
    color: #d94e16;
}

.marketplace-footer-bottom {
    max-width: 1280px;
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

@media (max-width: 1180px) {
    .desktop-nav-search {
        flex-basis: 100%;
        order: 4;
    }

    .marketplace-desktop-actions {
        margin-left: 0;
    }

    .marketplace-footer-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    body.app-shell,
    .main-wrapper {
        padding-bottom: calc(110px + env(safe-area-inset-bottom));
    }

    .marketplace-navbar,
    .role-admin .marketplace-navbar,
    .role-buyer .marketplace-navbar,
    .role-seller .marketplace-navbar,
    .role-guest .marketplace-navbar {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .marketplace-navbar {
        padding: 14px 14px 10px;
        gap: 0;
    }

    .marketplace-navbar-bar {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0;
    }

    .marketplace-brand-wrap {
        order: 1;
        flex: 1 1 calc(100% - 62px);
        max-width: calc(100% - 62px);
        min-width: 0;
        margin-right: 12px;
        justify-content: flex-start;
    }

    .brand-link {
        min-width: 0;
    }

    .brand-copy {
        align-items: flex-start;
        text-align: left;
    }

    .nav-mode-pill,
    .marketplace-navbar-main,
    .desktop-nav-search,
    .marketplace-desktop-actions {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        order: 2;
        flex: 0 0 auto;
        margin-left: 0;
        margin-right: 0;
    }

    .marketplace-mobile-panel {
        display: block;
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        align-self: stretch;
        transition: max-height 0.32s ease, opacity 0.22s ease, margin-top 0.22s ease;
    }

    .marketplace-mobile-panel.is-open {
        flex-basis: 100%;
        width: 100%;
        min-width: 100%;
        max-height: 80vh;
        opacity: 1;
        pointer-events: auto;
        margin-top: 16px;
    }

    .marketplace-mobile-panel-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
        min-width: 100%;
        padding-bottom: 6px;
    }

    .mobile-nav-search {
        width: 100%;
    }

    .mobile-nav-summary {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 16px 18px;
        border-radius: 18px;
        border: 1px solid rgba(242, 106, 46, 0.12);
        background: linear-gradient(135deg, #fff6ef, #ffffff);
        color: #667085;
    }

    .mobile-nav-summary strong {
        color: #1f2937;
    }

    .mobile-nav-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
        width: 100%;
        min-width: 100%;
        align-self: stretch;
        justify-items: stretch;
    }

    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: 84px;
        width: 100%;
        padding: 16px;
        border-radius: 18px;
        border: 1px solid rgba(31, 41, 55, 0.08);
        background: rgba(255, 255, 255, 0.92);
        box-sizing: border-box;
        color: #344054;
        text-decoration: none;
        font-weight: 700;
        transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
    }

    .mobile-nav-link.is-active {
        color: #d94e16;
        border-color: rgba(242, 106, 46, 0.18);
        background: rgba(242, 106, 46, 0.08);
    }

    .mobile-nav-icon-wrap {
        position: relative;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: rgba(242, 106, 46, 0.08);
        color: #d94e16;
    }

    .mobile-bottom-nav {
        display: block !important;
        left: 12px;
        right: 12px;
        bottom: 12px;
        height: auto;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-radius: 24px;
        border: 1px solid rgba(242, 106, 46, 0.14);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    }

    .mobile-bottom-nav ul {
        gap: 4px;
        padding: 0;
    }

    .mobile-bottom-nav li {
        flex: 1 1 20%;
    }

    .mobile-bottom-nav a {
        position: relative;
        color: #667085;
        font-size: 0.72rem;
        font-weight: 700;
        gap: 6px;
        padding: 10px 4px;
        border-radius: 16px;
    }

    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a.active {
        color: #d94e16;
        background: rgba(242, 106, 46, 0.1);
    }

    .mobile-bottom-icon {
        position: relative;
        display: inline-flex;
        justify-content: center;
        width: 24px;
    }

    .mobile-bottom-badge {
        position: absolute;
        top: -7px;
        right: -12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #f26a2e;
        color: #ffffff;
        font-size: 0.66rem;
        font-weight: 800;
        line-height: 1;
    }

    .marketplace-footer {
        padding-bottom: calc(116px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 993px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .brand-name {
        font-size: 1.12rem;
    }

    .brand-eyebrow {
        font-size: 0.68rem;
    }

    .marketplace-footer-shell {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .marketplace-footer-group {
        border: 1px solid rgba(31, 41, 55, 0.08);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
        overflow: hidden;
    }

    .marketplace-footer-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 16px 18px;
        cursor: pointer;
        list-style: none;
        color: #1f2937;
        font-size: 0.98rem;
        font-weight: 800;
    }

    .marketplace-footer-toggle::-webkit-details-marker {
        display: none;
    }

    .marketplace-footer-toggle i {
        color: #d94e16;
        transition: transform 0.22s ease;
    }

    .marketplace-footer-group[open] .marketplace-footer-toggle i {
        transform: rotate(180deg);
    }

    .marketplace-footer-panel {
        padding: 0 18px 18px;
    }

    .marketplace-footer-links h3 {
        display: none;
    }

    .marketplace-footer-brand {
        gap: 14px;
    }

    .marketplace-footer-group-brand .footer-brand-link strong {
        display: none;
    }

    .marketplace-footer-group-brand .footer-brand-link small {
        font-size: 0.9rem;
        color: #667085;
    }

    .mobile-nav-grid,
    .role-admin .mobile-nav-grid,
    .role-buyer .mobile-nav-grid,
    .role-seller .mobile-nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .role-admin .mobile-nav-link,
    .role-buyer .mobile-nav-link,
    .role-seller .mobile-nav-link {
        min-height: 76px;
        padding: 14px;
        gap: 8px;
    }

    .role-admin .mobile-nav-icon-wrap,
    .role-buyer .mobile-nav-icon-wrap,
    .role-seller .mobile-nav-icon-wrap {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 460px) {
    .marketplace-navbar {
        padding: 12px 10px 8px;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
    }

    .footer-brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .marketplace-nav-search {
        min-height: 48px;
        padding: 0 10px 0 12px;
    }

    .marketplace-nav-search button {
        padding: 9px 12px;
    }

    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .mobile-nav-grid,
    .role-admin .mobile-nav-grid,
    .role-buyer .mobile-nav-grid,
    .role-seller .mobile-nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
        gap: 8px;
    }

    .role-admin .mobile-nav-link,
    .role-buyer .mobile-nav-link,
    .role-seller .mobile-nav-link {
        min-height: 72px;
        padding: 12px;
        font-size: 0.88rem;
    }

    .role-admin .mobile-nav-icon-wrap,
    .role-buyer .mobile-nav-icon-wrap,
    .role-seller .mobile-nav-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .mobile-bottom-nav a span:last-child {
        font-size: 0.68rem;
    }
}
