/* assets/css/style.css */
:root {
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Premium Cobalt Blue Palette */
    --primary-h: 211;
    --primary-s: 100%;
    --primary-l: 38%;
    
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-hover: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 6%));
    --primary-light: hsl(var(--primary-h), var(--primary-s), 96%);
    --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
    
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --text-light: #777777;
    
    --border: #e0e0e0;
    --border-hover: #cccccc;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --success: #28a745;
    --success-bg: #d4edda;
    --success-border: #c3e6cb;
    
    --warning: #ffc107;
    --warning-bg: #fff3cd;
    --warning-border: #ffeeba;
    
    --error: #dc3545;
    --error-bg: #f8d7da;
    --error-border: #f5c6cb;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
   
}

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

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

.container {
    width: 100%;
    padding: 0 4%;
}

/* Glassmorphic Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.logo span {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Slick Search Form */
.search-container {
    flex-grow: 1;
    max-width: 480px;
}

.search-form {
    display: flex;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    padding: 3px;
    border: 1px solid transparent;
    transition: var(--transition);
    align-items: center;
}

.search-form:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-form input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 8px 16px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
}

.search-form .btn {
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    padding: 8px 18px;
    height: 38px;
}

/* Navigation Links & Cart Pill */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

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

.cart-nav-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary) !important;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    border: 1.5px solid transparent;
    transition: var(--transition);
    box-shadow: 0 2px 4px var(--primary-glow);
}

.cart-nav-pill:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.cart-nav-pill .cart-pill-counter {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    padding: 2px 8px;
    border-radius: 50px;
    min-width: 18px;
    text-align: center;
    transition: var(--transition);
}

/* Premium Inversion Focus Tracking Rules */
.cart-nav-pill:hover .cart-pill-counter {
    background: #ffffff !important;
    color: var(--primary) !important;
}

/* Premium Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Modern Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
    color: var(--text-main);
    padding: 60px 40px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-top: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 86, 179, 0.04) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.8;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Responsive Grid Layout */
.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

/* Dashboard Sidebar */
.sidebar {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    align-self: start;
}

.sidebar h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 6px;
}

.category-list a {
    color: var(--text-light);
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-list a:hover,
.category-list a.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    transform: translateX(4px);
}

/* Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-image-link {
    display: block;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.category-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    transition: var(--transition);
}

.product-title:hover {
    color: var(--primary);
}

.product-meta {
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 5px;
    margin-top: auto;
}

.product-meta .moq {
    font-weight: 600;
    color: var(--text-muted);
}

.product-card .btn-outline {
    width: 100%;
    font-size: 0.9rem;
    padding: 5px 5px;
    border-radius: var(--radius-sm);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Product Details View */
.product-details-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    margin: 40px 0;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
    font-weight: 500;
}

.breadcrumbs a {
    color: var(--text-muted);
}

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

.breadcrumbs span {
    color: var(--text-light);
}

.product-title-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 14px;
}

.product-info-full h1 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 0;
    flex-grow: 1;
}

.title-toggle-btn {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.title-toggle-btn:hover {
    background: var(--border);
    color: var(--text-main);
}

.product-title.expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

/* Swatch Selection Cards */
.sku-section {
    margin-top: 24px;
}

.sku-section-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.sku-selected-name {
    color: var(--primary);
    text-transform: none;
    font-weight: 600;
}

.sku-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.variant-option-item {
    border-radius: var(--radius-sm);
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sku-card {
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.sku-card-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.sku-card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sku-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.sku-card-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--error);
}

.sku-card-stock {
    font-size: 0.7rem;
    color: var(--text-light);
}

.sku-tag {
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border: 1.5px solid var(--border);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-muted);
}

/* Action Note & Footer */
.action-box {
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.action-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

/* Spec and Attributes List */
.description-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.description-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

/* Variation Wholesale Pricing Matrix & Custom Variation Tables */
.variation-matrix-table, table.variation-matrix-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 10px 0 !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.variation-matrix-table th, table.variation-matrix-table th {
    background-color: var(--primary-light) !important;
    padding: 12px 16px !important;
    border: 1px solid var(--border) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: left !important;
}

.variation-matrix-table td, table.variation-matrix-table td {
    padding: 12px 16px !important;
    border: 1px solid var(--border) !important;
    font-size: 0.88rem !important;
    color: var(--text-muted) !important;
    vertical-align: middle !important;
}

.variation-matrix-table tr:hover, table.variation-matrix-table tr:hover {
    background-color: var(--primary-light) !important;
}

.variation-matrix-table td span, table.variation-matrix-table td span {
    font-weight: 500 !important;
}

/* Reviews Section */
.reviews-section {
    background: var(--bg-card);
    padding: 35px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.reviews-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 24px;
}

.review-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.review-rating {
    color: #fbbf24;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-item p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Consolidated Sourcing Cart Screen */
.cart-workspace-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
}

@media (min-width: 1024px) {
    .cart-workspace-grid {
        grid-template-columns: 1.6fr 1fr;
    }
}

.cart-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.cart-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}

.cart-row-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    align-items: center;
}

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

.cart-row-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-main);
}

.cart-row-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-row-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.4;
}

.cart-row-title:hover {
    color: var(--primary);
}

.cart-row-meta {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.cart-row-qty {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 4px;
}

.cart-row-qty strong {
    color: var(--text-main);
    font-weight: 600;
}

.cart-row-remove {
    position: absolute;
    top: 20px;
    right: 0;
    background: #f1f5f9;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-row-remove:hover {
    color: var(--error);
    background: var(--error-bg);
}

/* Credentials Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    box-sizing: border-box;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: #ffffff;
}

.form-group input[readonly] {
    background-color: #f8fafc;
    color: var(--text-light);
    border-color: var(--border);
    cursor: not-allowed;
}

.form-group input[readonly]:focus {
    box-shadow: none;
    border-color: var(--border);
}

/* Footer Section */
footer {
    background: #ffffff;
    color: var(--text-muted);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive Scaling details */
@media (max-width: 768px) {
    .layout,
    .product-details-container {
        grid-template-columns: 1fr;
    }
    .product-details-container {
        padding: 20px;
        gap: 32px;
    }
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }
    .search-container {
        width: 100%;
        margin: 0;
    }
    .hero-section {
        padding: 50px 20px;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
}

/* Modern Slide-Out Sidebar Cart Drawer UI Component */
.cart-drawer-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); 
    z-index: 2000; 
    opacity: 0; 
    pointer-events: none; 
    transition: var(--transition); 
}
.cart-drawer-overlay.open { 
    opacity: 1; 
    pointer-events: auto; 
}
.cart-drawer-panel { 
    position: fixed; 
    top: 0; 
    right: -420px; 
    width: 100%; 
    max-width: 400px; 
    height: 100vh; 
    background: #ffffff; 
    box-shadow: var(--shadow-xl); 
    border-left: 1px solid var(--border); 
    z-index: 2001; 
    display: flex; 
    flex-direction: column; 
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
}
.cart-drawer-panel.open { 
    right: 0; 
}
.cart-header { 
    padding: 24px; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.cart-header h3 { 
    font-family: var(--font-heading); 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--text-main); 
    margin: 0; 
}
.cart-close-trigger { 
    background: none; 
    border: none; 
    font-size: 1.75rem; 
    color: var(--text-light); 
    cursor: pointer; 
    transition: var(--transition); 
    line-height: 1; 
}
.cart-close-trigger:hover { 
    color: var(--error); 
}
.cart-items-scrollstack { 
    flex-grow: 1; 
    overflow-y: auto; 
    padding: 24px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}
.cart-item-card { 
    display: flex; 
    gap: 14px; 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 20px; 
    position: relative; 
    align-items: center; 
}
.cart-item-card:last-child { 
    border-bottom: none; 
}
.cart-item-thumb { 
    width: 68px; 
    height: 68px; 
    border-radius: var(--radius-sm); 
    object-fit: cover; 
    border: 1px solid var(--border); 
    background: var(--bg-main); 
}
.cart-item-details { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    width: calc(100% - 82px); 
    padding-right: 24px; 
}
.cart-item-title { 
    font-family: var(--font-heading); 
    font-size: 0.9rem; 
    font-weight: 700; 
    color: var(--text-main); 
    line-height: 1.4; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.cart-item-meta { 
    font-size: 0.75rem; 
    color: var(--primary); 
    font-weight: 700; 
    background: var(--primary-light); 
    padding: 2px 8px; 
    border-radius: 4px; 
    width: fit-content; 
}
.cart-item-qty-price { 
    font-size: 0.85rem; 
    color: var(--text-light); 
    font-weight: 500; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 2px; 
}
.cart-item-qty-price strong { 
    color: var(--text-main); 
    font-weight: 600; 
}
.cart-item-remove-btn { 
    position: absolute; 
    top: 50%; 
    right: 0; 
    transform: translateY(-50%); 
    background: #f1f5f9; 
    border: none; 
    color: var(--text-light); 
    font-size: 1.1rem; 
    cursor: pointer; 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition); 
}
.cart-item-remove-btn:hover { 
    color: var(--error); 
    background: var(--error-bg); 
}
.cart-footer-panel { 
    padding: 24px; 
    border-top: 1px solid var(--border); 
    background: var(--bg-main); 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}
.cart-empty-view { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 100%; 
    color: var(--text-light); 
    gap: 14px; 
    text-align: center; 
    padding: 40px; 
}
.cart-empty-view span { 
    font-size: 3rem; 
}
.btn-cart-cta { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    padding: 14px; 
    background: var(--primary); 
    color: #ffffff; 
    font-weight: 700; 
    font-size: 0.95rem; 
    border-radius: var(--radius-sm); 
    text-decoration: none; 
    border: none; 
    cursor: pointer; 
    text-align: center; 
    box-shadow: 0 4px 12px rgba(37,99,235,0.2); 
    transition: var(--transition); 
}
.btn-cart-cta:hover { 
    background: var(--primary-hover); 
    transform: translateY(-1px); 
}

/* Apple Mac Style Dialog Sheet Components */
.mac-dialog-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); 
    z-index: 9999990; 
    opacity: 0; 
    pointer-events: none; 
    transition: var(--transition); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.mac-dialog-overlay.open { 
    opacity: 1; 
    pointer-events: auto; 
}
.mac-alert-sheet { 
    width: 300px; 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(25px) saturate(190%); 
    -webkit-backdrop-filter: blur(25px) saturate(190%); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-xl); 
    border: 1px solid rgba(255,255,255,0.4); 
    text-align: center; 
    overflow: hidden; 
    transform: scale(1.1); 
    opacity: 0; 
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease-out; 
    padding: 24px 0 0 0; 
    box-sizing: border-box; 
}
.mac-dialog-overlay.open .mac-alert-sheet { 
    transform: scale(1); 
    opacity: 1; 
}
.mac-sheet-icon { 
    font-size: 2.5rem; 
    margin-bottom: 12px; 
    display: inline-block; 
}
.mac-sheet-title { 
    font-family: var(--font-heading); 
    font-size: 1.05rem; 
    font-weight: 700; 
    color: var(--text-main); 
    padding: 0 20px; 
    margin-bottom: 6px; 
    letter-spacing: -0.01em; 
}
.mac-sheet-body { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    padding: 0 22px; 
    margin-bottom: 24px; 
    line-height: 1.45; 
    font-weight: 400; 
}
.mac-sheet-actions-stack { 
    display: flex; 
    flex-direction: column; 
    border-top: 0.5px solid var(--border); 
}
.mac-sheet-btn { 
    background: none; 
    border: none; 
    padding: 14px 0; 
    font-size: 0.95rem; 
    font-weight: 500; 
    cursor: pointer; 
    color: var(--primary); 
    width: 100%; 
    border-bottom: 0.5px solid var(--border); 
    transition: background 0.1s; 
    text-align: center; 
}
.mac-sheet-btn:last-child { 
    border-bottom: none; 
}
.mac-sheet-btn:active { 
    background: rgba(0,0,0,0.06); 
}
.mac-sheet-btn.primary-action { 
    font-weight: 700; 
}

/* Product Detail Page Specific Premium Components */
.pricing-moq-block { 
    margin: 20px 0 10px; 
}
.pricing-moq-label { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--text-light); 
    text-transform: uppercase; 
    letter-spacing: 0.06em; 
    margin-bottom: 10px; 
}
.tiered-pricing { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}
.tier-card {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    min-width: 90px; 
    padding: 12px 14px;
    border: 1.5px solid var(--border); 
    border-radius: var(--radius-sm);
    background: var(--bg-main); 
    cursor: default;
    transition: var(--transition);
}
.tier-card:hover { 
    border-color: var(--primary); 
    background: var(--primary-light); 
    transform: translateY(-1px); 
}
.tier-price { 
    font-size: 0.95rem; 
    font-weight: 800; 
    color: var(--error); 
}
.tier-qty { 
    font-size: 0.72rem; 
    color: var(--text-light); 
    margin-top: 4px; 
    font-weight: 600; 
}

/* Polished MOQ Badge Constraints */
.moq-badge {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    background: var(--warning-bg); 
    border: 1px solid var(--warning-border);
    color: var(--warning); 
    font-size: 0.8rem; 
    font-weight: 700;
    padding: 6px 14px; 
    border-radius: 20px; 
    margin-top: 12px;
    width: fit-content;
}
.moq-badge svg { 
    width: 14px !important; 
    height: 14px !important; 
    flex-shrink: 0; 
    display: inline-block;
    vertical-align: -2px;
}

/* Fly-to-Cart Animation Carrier Layer Element Styles */
.fly-item-node {
    position: fixed;
    z-index: 999999;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 2px solid #ffffff;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.42, 0, 0.58, 1), 
                opacity 0.8s ease-in-out, 
                width 0.8s ease-in-out, 
                height 0.8s ease-in-out;
}

/* Mac-style Spring Elastic Bounce Animation Keyframes */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.3) translateY(-4px); }
    50% { transform: scale(0.9) translateY(2px); }
    75% { transform: scale(1.1) translateY(-1px); }
}

.animate-cart-bounce {
    animation: cartBounce 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}