/* Ace Nexus-style store — light banner, sidebar, 4-col grid. Red branding. */

/* Banner */
.ace-nshop-banner {
    background: linear-gradient(180deg, #f2f6fa 0%, #eef2f7 100%);
    padding: 48px 0 36px;
    border-bottom: 1px solid #e2e8ef;
    position: relative;
    overflow: hidden;
}
.ace-nshop-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(159,23,34,.04) 0, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(159,23,34,.04) 0, transparent 40%);
    pointer-events: none;
}
.ace-nshop-banner h1 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    color: #101c2c;
    margin: 0 0 10px;
    letter-spacing: -.02em;
}
.ace-nshop-banner p {
    font-size: 15px;
    color: #5a626c;
    max-width: 640px;
    margin: 0 0 14px;
    line-height: 1.6;
}
.ace-nshop-crumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16,28,44,.06);
}
.ace-nshop-crumb a {
    color: #9f1722;
    text-decoration: none;
}
.ace-nshop-crumb span:last-child {
    color: #5a626c;
}

/* Main layout */
.ace-nshop-main {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 36px 20px 60px;
    align-items: start;
}
@media (max-width: 900px) {
    .ace-nshop-main {
        grid-template-columns: 1fr;
    }
}

/* Sidebar cards */
.ace-nshop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}
.ace-nshop-card {
    background: #fff;
    border: 1px solid #e6ebf0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(16,28,44,.04);
}
.ace-nshop-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #101c2c;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ace-nshop-card-title svg {
    color: #9f1722;
}

/* Category tree */
.ace-nshop-cats,
.ace-nshop-subcats,
.ace-nshop-brands {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ace-nshop-cat {
    border-bottom: 1px solid #f1f4f7;
}
.ace-nshop-cat:last-child {
    border-bottom: 0;
}
.ace-nshop-cat > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: #2a3441;
    text-decoration: none;
    transition: color .2s, padding-left .2s;
}
.ace-nshop-cat > a:hover {
    color: #9f1722;
    padding-left: 8px;
}
.ace-nshop-cat.is-empty > a {
    color: #9aa3ad;
}
.ace-nshop-cat-count {
    font-size: 12px;
    color: #8a94a0;
    font-weight: 500;
}
.ace-nshop-subcats {
    margin: 0 0 6px 8px;
    padding-left: 12px;
    border-left: 2px solid #f1f4f7;
}
.ace-nshop-subcats a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    font-size: 12.5px;
    color: #5a626c;
    text-decoration: none;
}
.ace-nshop-subcats a:hover {
    color: #9f1722;
}
.ace-nshop-dash {
    color: #9f1722;
    font-weight: 700;
}
.ace-nshop-brands a {
    display: block;
    padding: 8px 4px;
    font-size: 13px;
    color: #5a626c;
    text-decoration: none;
    border-bottom: 1px solid #f1f4f7;
}
.ace-nshop-brands a:hover {
    color: #9f1722;
}
.ace-nshop-brands li:last-child a {
    border-bottom: 0;
}

/* Product grid */
.ace-nshop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) {
    .ace-nshop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ace-nshop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ace-nshop-grid { grid-template-columns: 1fr; }
}

/* Product card */
.ace-nshop-card-product {
    background: #fff;
    border: 1px solid #e6ebf0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.ace-nshop-card-product:hover {
    border-color: #9f1722;
    box-shadow: 0 12px 32px rgba(159,23,34,.12);
    transform: translateY(-3px);
}
.ace-nshop-pimg {
    position: relative;
    background: #eef3f7;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}
.ace-nshop-pimg img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .3s;
}
.ace-nshop-card-product:hover .ace-nshop-pimg img {
    transform: scale(1.05);
}
.ace-nshop-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.ace-nshop-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}
.ace-nshop-badge-brand {
    background: #101c2c;
    color: #fff;
}
.ace-nshop-badge-cat {
    background: linear-gradient(135deg, #9f1722, #c22432);
    color: #fff;
}
.ace-nshop-pbody {
    padding: 16px 16px 12px;
    flex: 1;
}
.ace-nshop-prow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.ace-nshop-eyebrow {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #9f1722;
    text-transform: uppercase;
}
.ace-nshop-stars {
    color: #f5a623;
    font-size: 12px;
    letter-spacing: 1px;
}
.ace-nshop-ptitle {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}
.ace-nshop-ptitle a {
    color: #101c2c;
    text-decoration: none;
}
.ace-nshop-ptitle a:hover {
    color: #9f1722;
}
.ace-nshop-pdesc {
    font-size: 12.5px;
    color: #6a737e;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ace-nshop-pfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #f1f4f7;
}
.ace-nshop-price {
    font-size: 17px;
    font-weight: 800;
    color: #9f1722;
}
.ace-nshop-pactions {
    display: flex;
    gap: 8px;
}
.ace-nshop-btn-icon,
.ace-nshop-btn-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .2s;
    font-weight: 800;
}
.ace-nshop-btn-icon {
    background: #eef3f7;
    color: #2a3441;
}
.ace-nshop-btn-icon:hover {
    background: #101c2c;
    color: #fff;
}
.ace-nshop-btn-arrow {
    background: linear-gradient(135deg, #9f1722, #c22432);
    color: #fff;
    font-size: 16px;
}
.ace-nshop-btn-arrow:hover {
    transform: translateX(2px);
    box-shadow: 0 6px 16px rgba(159,23,34,.3);
}

/* Pagination */
.ace-nshop-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.ace-nshop-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e6ebf0;
    color: #2a3441;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 12px;
    transition: all .2s;
}
.ace-nshop-pagination .page-numbers:hover {
    border-color: #9f1722;
    color: #9f1722;
}
.ace-nshop-pagination .page-numbers.current {
    background: #9f1722;
    border-color: #9f1722;
    color: #fff;
}
