/* Customer Interface Styling - Vogue Harbor Storefront */

/* Navigation Bar */
.customer-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.customer-nav .nav-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, var(--primary) 30%, hsl(280, 65%, 60%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-user {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-user b {
    color: var(--text-main);
}

.role-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(106, 79, 212, 0.1);
}

/* Link Button in Nav */
.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.link-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Page Layout */
.catalogue-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Filters Panel */
.filters-panel {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 96px;
}

.filters-panel h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.filters-panel label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 18px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.filters-panel input, 
.filters-panel select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-main);
    background: var(--bg-light);
    transition: var(--transition);
}

.filters-panel input:focus, 
.filters-panel select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.filters-panel button {
    width: 100%;
    margin-top: 16px;
    padding: 11px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.filters-panel .primary-btn {
    background: var(--primary);
    color: var(--text-light);
    border: none;
}

.filters-panel .primary-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(106, 79, 212, 0.2);
}

.filters-panel #clear-filters {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-muted);
}

.filters-panel #clear-filters:hover {
    background: var(--bg-light);
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* Products Grid Section */
.product-grid-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-grid-section #results-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}

/* Product Cards */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-focus);
}

.product-image {
    position: relative;
    height: 250px;
    background: hsl(220, 20%, 95%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.no-image {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Pill Badges on Cards */
.product-image .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.product-image .badge.danger {
    background: var(--danger);
    color: var(--text-light);
}

.product-image .badge.warning {
    background: var(--warning);
    color: var(--text-light);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
    line-height: 1.3;
}

.product-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    margin-top: auto;
}

/* Product Detail Page Layout */
.detail-main {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 40px;
}

.detail-image {
    background: hsl(220, 20%, 95%);
    border-radius: var(--radius-lg);
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin: 8px 0 16px;
    color: var(--text-main);
    letter-spacing: -0.8px;
}

.detail-price {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.detail-description {
    font-size: 14px;
    margin: 20px 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.detail-attr {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.detail-attr span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.tag {
    display: inline-block;
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
}

.color-swatch {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px var(--border-color);
    vertical-align: middle;
}

.stock-note {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Primary Button for Customer detail page action if needed */
.primary-btn-store {
    display: block;
    width: 100%;
    max-width: 240px;
    text-align: center;
    margin-top: 28px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.primary-btn-store:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(106, 79, 212, 0.2);
}
.cart-actions { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cart-actions input { width: 70px; padding: 8px; }
.cart-success { color: #2e7d32; }