:root {
    --neo-radius: 16px;
    --neo-bg: #ffffff;
    --neo-bg-alt: #f8fafc;
    --neo-border: 1px solid #e2e8f0;
    --neo-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --neo-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08);
    --neo-primary: var(--custom-color, #bf1829);
    --neo-text-main: #0f172a;
    --neo-text-muted: #64748b;
    --neo-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------------------
   NEO GRID VIEW (Cards)
   ----------------------------------------------------- */
   .neo-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.neo-card {
    background: var(--neo-bg);
    border: var(--neo-border);
    border-radius: var(--neo-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--neo-transition);
    position: relative;
}

.neo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--neo-shadow-hover);
    border-color: transparent;
}

/* Image Section */
.neo-card-img {
    background: var(--neo-bg-alt);
    padding: 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: var(--neo-border);
}
.neo-card-img img {
    height: 180px;
    object-fit: contain;
    transition: var(--neo-transition);
}
.neo-card:hover .neo-card-img img {
    transform: scale(1.05);
}

/* Floating Badges inside Image */
.neo-badge-stock {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    padding: 4px 10px;
    border-radius: 50rem;
    font-size: 11px;
    font-weight: 700;
    color: var(--neo-text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.neo-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: var(--neo-text-muted);
    transition: var(--neo-transition);
    cursor: pointer;
    z-index: 10;
}
.neo-favorite-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}
.neo-favorite-btn i.fas {
    color: #ef4444;
}

/* Content Section */
.neo-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.neo-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neo-text-main);
    margin-bottom: 8px;
    line-height: 1.4;
    text-decoration: none;
}
.neo-card-title:hover {
    color: var(--neo-primary);
}

.neo-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--neo-primary);
    margin-bottom: 15px;
}

/* Details List */
.neo-card-details {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.neo-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--neo-text-muted);
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 4px;
}
.neo-detail-row strong {
    color: var(--neo-text-main);
    font-weight: 600;
}

/* Storage Selector */
.neo-storage-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}
.neo-storage-selector input[type="radio"] {
    display: none;
}
.neo-storage-selector label {
    background: var(--neo-bg-alt);
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--neo-text-muted);
    cursor: pointer;
    transition: var(--neo-transition);
    margin: 0;
}
.neo-storage-selector input[type="radio"]:checked + label {
    background: var(--neo-primary);
    color: #fff;
    border-color: var(--neo-primary);
}

/* Action Bar */
.neo-action-bar {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.neo-qty-box {
    display: flex;
    align-items: center;
    background: var(--neo-bg-alt);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
}
.neo-qty-btn {
    background: #f2f2f2;
    border: none;
    width: 20px;
    height: 20px;
    color: var(--neo-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms ease;
    padding: 0;
    font-size: 11px;
}
.neo-qty-btn:hover {
    color: var(--neo-text-muted);
    background: #e0e0e0;
}
.neo-qty-input {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--neo-text-main);
    padding: 0;
}
.neo-qty-input:focus {
    outline: none;
}

.neo-cart-btn {
    flex-grow: 1;
    background: var(--neo-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--neo-transition);
}
.neo-cart-btn:hover {
    filter: brightness(1.1);
}


/* -----------------------------------------------------
   NEO LIST VIEW (Rows replacing Tables)
   ----------------------------------------------------- */
   .neo-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.neo-row {
    background: var(--neo-bg);
    border: var(--neo-border);
    border-radius: var(--neo-radius);
    padding: 15px;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 24px;
    align-items: center;
    transition: var(--neo-transition);
}

.neo-row:hover {
    box-shadow: var(--neo-shadow);
    border-color: transparent;
    transform: translateY(-2px);
}

.neo-row-img {
    background: var(--neo-bg-alt);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.neo-row-img img {
    object-fit: contain;
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 5px;
}

.neo-row-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.neo-row-header {
    /* display: flex; */
    /* justify-content: space-between; */
    /* align-items: flex-start; */
}

.neo-row-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--neo-text-main);
    text-decoration: none;
}
.neo-row-title:hover {
    color: var(--neo-primary);
}

.neo-row-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--neo-text-muted);
}
.neo-row-meta strong {
    color: var(--neo-text-main);
}

/* Feature Icons in Row */
.neo-row-icons {
    display: flex;
    gap: 15px;
    margin-top: 4px;
}
.neo-icon-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--neo-text-muted);
}
.neo-icon-item img {
    height: 14px;
    opacity: 0.7;
}

.neo-row-actions {
    /* display: flex;
    align-items: center;
    gap: 20px;*/
    padding-left: 20px;
    border-left: 1px solid #e2e8f0;
}

.neo-row-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--neo-primary);
    text-align: right;
    margin-bottom: 10px;
}

/* Mobile Responsiveness for List View */
@media (max-width: 991px) {
    .neo-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .neo-row-img {
        height: 150px;
    }
    .neo-row-img img {
        max-height: 120px;
    }
    .neo-row-actions {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e2e8f0;
        padding-top: 15px;
        flex-direction: column;
        align-items: stretch;
    }
    .neo-row-price {
        text-align: left;
    }
    .neo-row-header {
        flex-direction: column;
        gap: 5px;
    }
}

/* -----------------------------------------------------
   NEO-COMMERCE HEADER
   ----------------------------------------------------- */
   #header.neo-header {
    position: sticky !important;
    top: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

/* On scroll class (optional, but CSS sticky is usually enough, but we can add logic later or just let sticky handle it) */
#header.neo-header.scrolled {
    padding: 8px 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

#header.neo-header .header-column {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

#header.neo-header .logo {
    flex-shrink: 0 !important;
    margin-right: 30px !important;
    position: relative !important;
}

#header.neo-header .logo img {
    max-height: 40px !important;
    transition: max-height 0.3s ease !important;
}
#header.neo-header.scrolled .logo img {
    max-height: 32px !important;
}

/* Centered Navigation */
#header.neo-header .primary-menu {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: center !important;
    position: static !important; /* Override template positioning */
    background: transparent !important;
}

#header.neo-header .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    align-items: midle !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#header.neo-header .navbar-nav > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}



#header.neo-header .navbar-nav > li > a:hover {
    color: var(--neo-primary) !important;
    background: transparent !important;
}



#header.neo-header .navbar-nav > li > a:hover::after,
#header.neo-header .navbar-nav > li.active > a::after {
    width: 100% !important;
}

/* Dropdown Fixes */
#header.neo-header .dropdown-menu {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    margin-top: 15px !important;
    background: #fff !important;
    min-width: 200px !important;
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
}
#header.neo-header .dropdown:hover .dropdown-menu,
#header.neo-header .dropdown-menu.show {
    display: block !important;
}

#header.neo-header .dropdown-item {
    border-radius: 8px !important;
    padding: 10px 15px !important;
    color: var(--neo-text-main) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}
#header.neo-header .dropdown-item:hover {
    background: #f1f5f9 !important;
    color: var(--neo-primary) !important;
}

/* Action Button */
#header.neo-header .neo-btn-action {
    background: var(--neo-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 50rem !important; /* Elegant pill shape */
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

#header.neo-header .neo-btn-action:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Mobile Toggler */
#header.neo-header .navbar-toggler {
    border: none !important;
    background: transparent !important;
    padding: 8px !important;
}
#header.neo-header .navbar-toggler span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background-color: var(--neo-text-main) !important;
    margin: 5px 0 !important;
    transition: all 0.3s ease !important;
}

.brand-name {
    display: block;
    font-size: 13px;
    color: var(--neo-primary);
}

@media (max-width: 991px) {
    #header.neo-header .header-column {
        flex-wrap: wrap !important;
    }
    #header.neo-header .primary-menu {
        order: 3 !important;
        width: 100% !important;
        justify-content: flex-start !important;
        margin-top: 15px !important;
        position: relative !important;
    }
    #header.neo-header .navbar-nav {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        align-items: flex-start !important;
        background: #fff !important;
        padding: 15px !important;
        border-radius: 12px !important;
        box-shadow: var(--neo-shadow) !important;
    }
    #header.neo-header .navbar-nav > li {
        width: 100% !important;
    }
    #header.neo-header .navbar-nav > li > a {
        display: block !important;
        width: 100% !important;
    }
    #header.neo-header .neo-btn-action-wrapper {
        order: 2 !important;
        flex-shrink: 0 !important;
    }
}

