/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 60px 0 50px;
    text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: var(--gray-light); max-width: 600px; margin: 0 auto; }

/* ===== SHOP LAYOUT ===== */
.shop-section {
    padding: 50px 0 80px;
    background: var(--light);
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar */
.shop-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sb-card {
    background: var(--white);
    border: 1px solid var(--light-2);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sb-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-card h4 i { color: var(--primary); }

.sb-cats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sb-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    transition: var(--transition);
    text-decoration: none;
}

.sb-cat i { font-size: 14px; color: var(--gray-light); width: 18px; text-align: center; }
.sb-cat span { margin-left: auto; padding: 2px 8px; background: var(--light); border-radius: 20px; font-size: 11px; font-weight: 700; color: var(--gray); }

.sb-cat:hover { background: var(--light); color: var(--primary); }
.sb-cat:hover i { color: var(--primary); }

.sb-cat.active {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}
.sb-cat.active i { color: var(--white); }
.sb-cat.active span { background: rgba(255, 255, 255, 0.2); color: var(--white); }

.sb-help {
    text-align: center;
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border-color: rgba(0, 102, 255, 0.1);
}
.sb-help > i { font-size: 32px; color: var(--primary); margin-bottom: 8px; }
.sb-help h4 { justify-content: center; margin-bottom: 4px; }
.sb-help p { font-size: 13px; color: var(--text-body); margin-bottom: 14px; }

/* ===== SHOP SEARCH ===== */
.shop-search {
    position: relative;
    margin-bottom: 16px;
}

.shop-search > i {
    position: absolute;
    left: 16px;
    top: 15px;
    color: var(--gray);
    font-size: 15px;
    z-index: 1;
}

.shop-search input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    background: var(--white);
    border: 2px solid var(--light-2);
    border-radius: 12px;
    font-family: 'Exo', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.shop-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.08);
}

.shop-search input::placeholder {
    color: var(--gray-light);
}

.search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-2);
    color: var(--gray);
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: var(--primary);
    color: var(--white);
}

.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--light-2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 50;
}

.search-results.visible {
    display: block;
}

.sr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--light-2);
}

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

.sr-item:hover {
    background: var(--light);
}

.sr-icon {
    width: 36px;
    height: 36px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

.sr-info h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1px;
}

.sr-info span {
    font-size: 11px;
    color: var(--gray);
}

.sr-price {
    margin-left: auto;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.sr-empty {
    padding: 20px;
    text-align: center;
    color: var(--gray);
    font-size: 13px;
}

/* ===== SHOP CONTENT ===== */
.shop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: var(--white);
    border: 1px solid var(--light-2);
    border-radius: 10px;
}

.shop-count {
    font-size: 13px;
    color: var(--gray);
}

.shop-sort {
    padding: 8px 14px;
    border: 1px solid var(--light-2);
    border-radius: 8px;
    font-family: 'Exo', sans-serif;
    font-size: 13px;
    color: var(--text-body);
    background: var(--light);
    outline: none;
    cursor: pointer;
}

/* Product Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sp-card {
    background: var(--white);
    border: 1px solid var(--light-2);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.sp-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sp-img {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.sp-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light), var(--light-2));
}

.sp-placeholder i {
    font-size: 40px;
    color: rgba(0, 102, 255, 0.2);
}

.sp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.sp-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sp-cat {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sp-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.sp-desc {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.sp-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
}

.sp-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary);
}

.sp-buy {
    padding: 6px 14px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
    transition: var(--transition);
}

.sp-card:hover .sp-buy {
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

/* ===== YP DETAIL EXTRAS ===== */
.yp-price-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.yp-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
}

.yp-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 212, 170, 0.1);
    color: #059669;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.related-yp {
    padding: 60px 0;
    background: var(--light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .page-hero h1 { font-size: 26px; }
    .page-hero { padding: 40px 0 36px; }

    .shop-layout { grid-template-columns: 1fr; }

    .shop-sidebar {
        position: static;
        flex-direction: column;
        gap: 12px;
    }

    .sb-card { min-width: auto; }

    .sb-cats {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .sb-cat {
        padding: 8px 12px;
        font-size: 12px;
        border: 1px solid var(--light-2);
        border-radius: 8px;
        background: var(--light);
    }

    .sb-cat.active { border-color: transparent; }

    .sb-help { display: none; }

    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sp-img { height: 120px; }
    .sp-info h4 { font-size: 13px; }
    .sp-price { font-size: 14px; }
    .sp-buy { font-size: 10px; padding: 5px 10px; }
    .sp-desc { font-size: 11px; }
    .shop-search input { font-size: 13px; padding: 12px 40px; }
}

@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .sp-info { padding: 12px; }
}
