.chip-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chip{display:inline-flex;align-items:center;background:#e9ecef;color:#333;border-radius:16px;padding:4px 12px;font-size:14px;line-height:1.5;}
.chip .chip-remove{margin-left:6px;cursor:pointer;background:none;border:none;color:#888;font-size:16px;line-height:1;}
/* Hide dashboard-only elements when editing a product */
body.hide-dashboard .dashboard-only { display: none !important; }

/* SPA Edit Product Section Styles */
.spa-edit-section {
    /* remove outer box and shadow for a flat layout */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: 1100px;
    width: 100%;
    margin: 40px auto 0 auto;
    padding-bottom: 24px;
}
.spa-edit-section .edit-header { border-radius: 0; }
.spa-edit-section .back-link { font-size: 22px; background: none; border: none; cursor: pointer; }
.spa-edit-section .edit-actions .btn { margin-left: 12px; }
.spa-edit-section .edit-content { background: #f6f6f7; border-radius: 0; }
.logo {
    width: 150px;
    height: auto;
    display: block;
}

nav {
    background-color: #f5f5f5;
    padding: 20px;
}

.nav-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 30px;
}

.nav-header ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.nav-header li {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
}

:root{
    --sidebar-width: 220px;
    --muted:#f3f4f6;
    --accent:#111827;
    --pill-bg:#e9ecef;
}

body{font-family: 'Alexandria', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; margin:0; color:var(--accent);}

.dashboard{display:flex; min-height:100vh}
.sidebar{width:var(--sidebar-width); background:#ffffff; border-right:1px solid #ececec; padding:28px}
.sidebar .logo{width:140px}
.sidebar-menu{list-style:none; padding:20px 0 0 0; margin:0}
.sidebar-menu li{padding:12px 8px; color:#666; border-radius:8px; cursor:pointer}
.sidebar-menu li.active-item{background:var(--muted); color:#111}

.main-area{flex:1; padding:36px}
.page-header{display:flex; align-items:center; gap:24px}
.page-header h1{font-size:28px; letter-spacing:1px; margin:0}
.search-row input{padding:12px 16px; border-radius:20px; border:1px solid #e6e6e6; width:320px}

.page-header{display:flex; align-items:center; gap:24px; justify-content:space-between}
.view-store .view-store-btn{background:#111827;color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none;font-weight:600}

.controls{display:flex; justify-content:space-between; align-items:center; margin-top:20px}
.tabs{display:flex; gap:12px}
.tab{padding:8px 14px; border-radius:8px; background:var(--muted); border:0}
.tab.active{background:#fff; box-shadow:0 0 0 1px #e6e6e6 inset}
.actions{display:flex; gap:12px}
.pill{padding:8px 14px; border-radius:24px; background:var(--pill-bg); border:0}

.products-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:24px; margin-top:28px}
.product-card{background:#fff; border:1px solid #eee; border-radius:8px; padding:16px; display:flex; flex-direction:column; gap:12px}
.product-card .thumb{position:relative; height:200px; display:flex; align-items:center; justify-content:center; background:linear-gradient(180deg,#fafafa,#f7f7f7); border-radius:6px; overflow: hidden;}
.product-card .thumb img{width:100%; height:100%; object-fit:cover;}
.product-card .thumb .placeholder{color:#bbb}
.product-card .thumb .select{position:absolute; left:8px; top:8px}
.product-card .meta{display:flex; justify-content:space-between; align-items:center}
.product-card .title{font-weight:600}
.product-card .price{color:#333}

/* Product card action buttons */
.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.product-card-actions .btn {
    flex: 1;
    padding: 6px 12px;
    font-size: 13px;
}

/* Quick delete button on product card */
.product-card-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.product-card:hover .product-card-delete {
    opacity: 1;
}

.product-card-delete:hover {
    background: rgba(220, 38, 38, 1);
}

/* Add Product Card */
.add-card{display:flex; align-items:center; justify-content:center; border:2px dashed #e6e6e6; border-radius:8px; padding:18px; cursor:pointer; background:#fafafa; transition:background-color 180ms ease-in-out, border-color 180ms ease-in-out; min-height: 280px;}
.add-card:hover{background:#f6f8ff; border-color:#c7d2fe}
.add-card:focus, .add-card:active{outline:3px solid rgba(99,102,241,0.15); outline-offset:2px}
.add-card .plus{font-size:36px; color:#999; line-height: 1;}
.add-card div{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px}

/* responsive tweaks */
@media (max-width:900px){
    .sidebar{display:none}
    .main-area{padding:18px}
    .search-row input{width:100%}
    .products-grid{grid-template-columns:repeat(2,1fr)}
}

/* Edit product page styles */
.edit-page .edit-header{display:flex; justify-content:space-between; align-items:center; margin-bottom:18px}
.back-link{display:inline-block; font-size:20px; text-decoration:none; color:inherit}
.edit-actions .btn{margin-left:12px}
.btn{padding:8px 14px; border-radius:8px; border:0; cursor:pointer}
.btn-ghost{background:#e6e6e6}
.btn-primary{background:#111827; color:#fff}
.edit-content{background:#f6f6f7; padding:28px; border-radius:12px; box-shadow:0 1px 0 rgba(0,0,0,0.02); width:100%; box-sizing:border-box; max-width:none}
.grid-columns{display:grid; grid-template-columns:1fr 360px; gap:48px; align-items:start}
.left-column label{display:block; margin-bottom:12px; color:#333}

/* top block containing name + description — keep a controlled height so fields align with right column */
.top-block{min-height:300px; display:flex; flex-direction:column; gap:12px}
.left-column input[type="text"], .left-column textarea{width:100%; padding:12px; border-radius:8px; border:1px solid #eaeaea; background:#fff}
.left-column textarea{min-height:100px}
.left-column .selector{display:inline-block; padding:8px 14px; border-radius:20px; background:#f0f0f0; border:0; margin-top:8px}
.left-column .input-inline{display:flex; align-items:center; gap:10px}
.left-column .input-inline input[type="text"]{flex:1}

/* unified input + select sizing */
.left-column .input-inline input[type="text"],
.left-column .input-inline select{
    height:44px;
    border-radius:8px;
    border:1px solid #e6e6e6;
    padding:0 12px;
    background:#fff;
    font-size:15px;
}

/* Ensure all form fields use the same UI font */
input, select, textarea, button {
    font-family: 'Alexandria', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.left-column .input-inline select{width:120px; appearance:none; -webkit-appearance:none; background-repeat:no-repeat}
.currency-select{width:110px}
.shipping-select{width:150px}

.left-column .input-inline select{
    padding-right:36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.23 7.21a.75.75 0 011.06 0L10 10.92l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.23 8.27a.75.75 0 010-1.06z'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-size: 12px 12px;
}

.left-column .input-inline select:focus,
.left-column .input-inline input[type="text"]:focus{outline:3px solid rgba(99,102,241,0.12)}
.right-column{width:360px}
.right-column label{display:block; margin-top:12px}
.right-column select,
#status{
    width:100%;
    height:44px;
    border-radius:8px;
    border:1px solid #e6e6e6;
    padding:0 12px;
    background:#fff;
    font-size:15px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.23 7.21a.75.75 0 011.06 0L10 10.92l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.23 8.27a.75.75 0 010-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
    padding-right:36px;
}
.upload-large{height:260px; border-radius:8px; background:#f3f3f3; display:flex; align-items:center; justify-content:center; border:1px dashed #e6e6e6}
.upload-dropzone{width:100%; height:100%; box-sizing:border-box; border:2px dashed #d6d6de; border-radius:8px; padding:28px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:transparent}
.upload-icon-circle{width:56px; height:56px; border-radius:50%; background:#f4f7fb; display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:12px}
.upload-title{font-weight:700; margin-bottom:8px; text-align:center}
.upload-sub{color:#6b7280; font-size:14px; margin-top:6px; text-align:center}
.upload-icon{font-size:36px}
.upload-row{display:flex; gap:8px; margin-top:12px}
.upload-thumb{width:72px; height:72px; border-radius:8px; background:#f3f3f3; display:flex; align-items:center; justify-content:center}
.selector{display:inline-block; padding:8px 14px; border-radius:20px; background:#e9e9e9; border:0; margin-top:8px}
.input-inline{display:flex; align-items:center; gap:8px}
.select-currency{background:#e9e9e9; padding:8px 10px; border-radius:8px}

/* Previews placed below upload box */
.upload-previews{display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; align-items:center}
.upload-preview{width:72px; height:72px; object-fit:cover; border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,0.06);}

/* small remove button style fallback */
.preview-remove{display:inline-flex; align-items:center; justify-content:center}

/* Hide product select checkboxes by default; show only in quick-edit mode */
.product-card .select { display: none; }
.quick-edit-mode .product-card .select { display: block; }

/* Wireframe Public Page Styles */
.top-nav {
    background: #ffffff;
    border-bottom: 1px solid #ececec;
    padding: 28px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    gap: 24px;
}

.nav-logo {
    width: 140px;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 12px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link.active {
    background: var(--muted);
    color: var(--accent);
}

.nav-link:hover {
    background: var(--muted);
    color: var(--accent);
}

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

.cart-btn {
    background: var(--pill-bg);
    border: 0;
    padding: 8px 14px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
}

.dev-view-btn-small {
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.marketplace-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 36px;
}

.page-title-section {
    text-align: center;
    padding: 48px 0 32px;
}

.marketplace-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0 0 16px 0;
}

.breadcrumb {
    color: #666;
    font-size: 14px;
    margin-bottom: 32px;
}

.breadcrumb .current {
    color: var(--accent);
    font-weight: 600;
}

.products-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

.marketplace-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    width: 100%;
}

.products-main {
    flex: 1;
    width: 100%;
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 28px;
}

.search-container {
    position: relative;
}

.search-input {
    padding: 12px 16px;
    border-radius: 20px;
    border: 1px solid #e6e6e6;
    width: 320px;
    background: #fff;
    font-size: 15px;
}

.search-input:focus {
    outline: 3px solid rgba(99,102,241,0.12);
    border-color: #c7d2fe;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    width: 100%;
}

.products-grid .product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s;
}

.products-grid .product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.products-grid .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    background: linear-gradient(180deg,#fafafa,#f7f7f7);
}

.products-grid .product-card .title {
    font-weight: 600;
    margin: 0;
    color: var(--accent);
}

.products-grid .product-card .price {
    color: #333;
    font-size: 15px;
    margin: 0;
}

.empty {
    text-align: center;
    color: #666;
    grid-column: 1 / -1;
    padding: 60px 20px;
    font-size: 16px;
}

/* Product Detail View - matching wireframe */
.product-detail-container {
    width: 100%;
    padding: 36px 0;
}

.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 36px;
}

.back-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 28px;
    color: #666;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: underline;
}

.back-button:hover {
    color: var(--accent);
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.product-image-section {
    width: 100%;
}

.product-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-detail-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(180deg,#fafafa,#f7f7f7);
}

.image-thumbnails {
    display: flex;
    gap: 12px;
}

.image-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.image-thumbnails img:hover,
.image-thumbnails img.active {
    border-color: var(--accent);
}

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-info-section h1 {
    font-size: 32px;
    margin: 0;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.product-price-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-detail-price {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
}

.product-status {
    color: #666;
    font-size: 14px;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-select {
    padding: 12px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 15px;
    appearance: none;
    cursor: pointer;
}

.add-to-cart-btn {
    background: #e6e6e6;
    color: var(--accent);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background: #ddd;
}

.product-description-section {
    margin-top: 20px;
}

.product-description-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--accent);
}

.product-description {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* Other Products Section */
.other-products-section {
    border-top: 1px solid #e6e6e6;
    padding-top: 60px;
}

.other-products-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 32px 0;
    color: var(--accent);
    letter-spacing: 1px;
}

.other-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.other-products-grid .product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    transition: box-shadow 0.2s;
}

.other-products-grid .product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.other-products-grid .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    background: linear-gradient(180deg,#fafafa,#f7f7f7);
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .other-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cart View Styles */
.cart-container {
    width: 100%;
    padding: 36px 0;
}

.cart-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 36px 28px;
    border-bottom: 1px solid #e6e6e6;
}

.cart-header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 16px 0 0 0;
    color: var(--accent);
}

.cart-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 36px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: white;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    background: linear-gradient(180deg,#fafafa,#f7f7f7);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-title {
    font-weight: 600;
    color: var(--accent);
}

.cart-item-price {
    color: #666;
    font-size: 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
}

.remove-item-btn:hover {
    color: #e74c3c;
}

.cart-summary {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    height: fit-content;
}

.cart-total {
    margin-bottom: 24px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.total-final {
    font-weight: 600;
    font-size: 18px;
    color: var(--accent);
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

.checkout-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #374151;
}

.empty-cart {
    text-align: center;
    color: #666;
    padding: 60px 20px;
}

@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    
    .cart-item-quantity,
    .remove-item-btn {
        grid-column: 2;
        justify-self: end;
    }
}

/* Cart Modal Styles */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cart-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    position: relative;
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Variation section styles */
.variation-section { margin-top: 12px; }
.variation-header-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.variation-title { font-weight:700; font-size:18px; }
.variation-edit { background: none; border: none; color: #666; cursor: pointer; font-size:14px; }
.variation-add-row { display:flex; gap:12px; align-items:center; margin-top:8px; }
.variation-input { flex:1; height:44px; padding:12px; border-radius:8px; border:1px solid #e6e6e6; font-size:15px; background:#fff; }
.variation-input:focus { outline: none; border-color: #c7d2fe; box-shadow: 0 0 0 4px rgba(99,102,241,0.12); background:#fff; }
.btn-add-variation { background:#e9e9ef; border:0; padding:12px 22px; border-radius:24px; cursor:pointer; font-weight:600; }

/* Variation group card */
.variation-group { border:1px solid #eee; padding:12px; border-radius:10px; margin-bottom:12px; background:#fff }
.variation-header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px }
.variation-name { font-size:15px; padding:6px 10px; border-radius:8px; border:1px solid #eaeaea }
.remove-variation { background:#f3f4f6; border:0; padding:6px 10px; border-radius:8px; cursor:pointer }
.variation-tags .chip { margin-top:8px }

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 24px;
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 8px;
    border-radius: 4px;
}

.close-cart-btn:hover {
    background: #f5f5f5;
}

.cart-modal-body {
    padding: 0 24px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.cart-items {
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    background: linear-gradient(180deg,#fafafa,#f7f7f7);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.cart-item-price {
    color: #666;
    font-size: 14px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
}

.remove-item-btn:hover {
    color: #e74c3c;
}

.cart-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.cart-total {
    margin-bottom: 20px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
}

.total-final {
    font-weight: 600;
    font-size: 18px;
    color: var(--accent);
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 12px;
}

.checkout-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.checkout-btn:hover {
    background: #374151;
}

.empty-cart {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

/* Orders page header button */
.page-header .view-store-btn {
    background: #111827;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.page-header .view-store-btn:hover {
    background: #1f2937;
}

/* ========================================
   LANDING PAGE STYLES
   ======================================== */

.landing-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Landing Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo .logo-img {
    height: 40px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav .nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav .nav-link:hover {
    color: #111827;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: #333;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary-sm {
    background: #111827;
    color: #fff;
}

.btn-primary-sm:hover {
    background: #1f2937;
}

.btn-outline {
    background: transparent;
    color: #333;
    border: 1px solid #e5e7eb;
}

.btn-outline:hover {
    background: #f3f4f6;
}

.btn-admin {
    background: #4f46e5;
    color: #fff;
}

.btn-admin:hover {
    background: #4338ca;
}

.btn-primary-landing {
    background: #111827;
    color: #fff;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-primary-landing:hover {
    background: #1f2937;
    transform: translateY(-2px);
}

/* Hero Section */
.landing-main {
    flex: 1;
    margin-top: 64px; /* Account for fixed header */
}

.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    /* Placeholder background - easily swappable with your own image */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 40px 24px;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0 0 32px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Features Section */
.features-section {
    padding: 80px 24px;
    background: #f9fafb;
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.feature-card p {
    margin: 0;
    color: #6b7280;
}

/* Landing Footer */
.landing-footer {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 24px;
}

.landing-footer p {
    margin: 0;
}

/* ========================================
   NAV AUTH STYLES (for public.html)
   ======================================== */

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

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-user-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.login-btn, .logout-btn, .admin-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.login-btn {
    background: #111827;
    color: #fff;
}

.login-btn:hover {
    background: #1f2937;
}

.logout-btn {
    background: #e5e7eb;
    color: #374151;
}

.logout-btn:hover {
    background: #d1d5db;
}

.admin-btn {
    background: #4f46e5;
    color: #fff;
}

.admin-btn:hover {
    background: #4338ca;
}

/* ========================================
   ADMIN SIDEBAR USER STYLES
   ======================================== */

.sidebar-user {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-info {
    display: flex;
    flex-direction: column;
}

.admin-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.admin-role {
    font-size: 12px;
    color: #666;
}

.sidebar-logout {
    display: block;
    padding: 8px 12px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
}

.sidebar-logout:hover {
    background: #e5e7eb;
}

/* Shop Settings styles */
#shop-settings-link {
    cursor: pointer;
}

.shop-settings-panel {
    max-width: 900px;
}

.shop-settings-panel .page-header {
    margin-bottom: 28px;
}

.shop-settings-panel .back-settings {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    margin-right: 12px;
    transition: color 0.2s;
}

.shop-settings-panel .back-settings:hover {
    color: var(--accent);
}

.shop-settings-panel .settings-content {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shop-settings-panel .settings-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.shop-settings-panel .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-settings-panel .form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-settings-panel input[type="text"],
.shop-settings-panel textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.shop-settings-panel input[type="text"]:focus,
.shop-settings-panel textarea:focus {
    outline: none;
    border-color: #c7d2fe;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.shop-settings-panel textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.shop-settings-panel .btn-save {
    align-self: flex-start;
    background: #22c55e;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.shop-settings-panel .btn-save:hover {
    background: #16a34a;
}

.shop-settings-panel .btn-save:active {
    transform: translateY(1px);
}

/* Collections Panel */
.collections-panel {
    width: 100%;
}

.collections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.collections-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.collections-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.collection-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}

.collection-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.collection-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.collection-info p {
    margin: 0 0 8px;
    color: #666;
    font-size: 14px;
}

.collection-count {
    display: inline-block;
    background: var(--pill-bg);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.collection-actions {
    display: flex;
    gap: 8px;
}

/* Collection Modal */
.collection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.collection-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.collection-modal-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collection-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.collection-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-modal-body {
    padding: 24px;
}

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

.collection-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.collection-form-group input,
.collection-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.collection-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.collection-products-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.collection-products-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
}

.collection-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.collection-product-item {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.collection-product-item:hover {
    border-color: #c7d2fe;
    background: #f6f8ff;
}

.collection-product-item.selected {
    border-color: #111827;
    background: #f0f0f0;
}

.collection-product-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 6px;
}

.collection-product-item .product-name {
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.nav-link.active {
    background: var(--muted);
    color: var(--accent);
}

/* Collections View */
.collections-view {
    width: 100%;
    padding-bottom: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 0 32px 0;
    color: var(--accent);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.collection-card-public {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collection-card-public:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #c7d2fe;
}

.collection-card-public h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
}

.collection-card-public p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.collection-card-public .collection-count {
    display: inline-block;
    background: var(--pill-bg);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    width: fit-content;
}

/* Collection Detail View */
.collection-detail-view {
    width: 100%;
}

.collection-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.collection-back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.collection-back-btn:hover {
    color: var(--accent);
}

.collection-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    color: var(--accent);
}

.collection-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}

