@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #f1c40f;
    --dark-bg: #0b0b0b;
    --card-bg: rgba(18, 18, 18, 0.95);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-muted: #888;
    --text-light: #eee;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: #050505;
    color: var(--text-light);
}

.shop-hero {
    position: relative;
    text-align: center;
    padding: 120px 20px 70px;
    background: radial-gradient(circle at center, rgba(241, 196, 15, 0.08) 0%, rgba(0,0,0,0) 60%);
    margin-bottom: 30px;
    animation: fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.shop-hero h1 {
    font-size: 4rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(241, 196, 15, 0.25);
    letter-spacing: 4px;
    line-height: 1;
    font-weight: 700;
}

.shop-hero h1 span.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 40px rgba(241, 196, 15, 0.5);
}

.shop-hero p {
    color: var(--text-muted);
    font-size: 1.3rem;
    max-width: 600px;
    margin: 15px auto 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.shop-section {
    padding: 0 20px 100px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.shop-container {
    display: flex;
    max-width: 1500px;
    width: 100%;
    gap: 50px;
}

.shop-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 110px;
    height: fit-content;
    z-index: 10;
}

.sidebar-glass {
    background: rgba(12, 12, 12, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.search-box {
    position: relative;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 15px 14px 45px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-radius: 0;
}

.search-box input::placeholder {
    color: #555;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(241,196,15,0.1);
}

.search-box i {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    transition: 0.3s;
    font-size: 1rem;
}

.search-box input:focus + i {
    color: var(--primary-color);
}

.category-list h3 {
    padding: 30px 25px 15px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    opacity: 0.9;
}

.category-list ul {
    list-style: none;
    padding: 0 0 25px 0;
    margin: 0;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 25px;
    color: #999;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.category-link i {
    width: 24px;
    text-align: center;
    color: #444;
    transition: 0.3s;
}

.category-link:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
    padding-left: 30px;
}

.category-link:hover i {
    color: #eee;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.category-link.active {
    background: linear-gradient(90deg, rgba(241,196,15,0.1) 0%, transparent 100%);
    border-left-color: var(--primary-color);
    color: #fff;
}

.category-link.active i {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(241,196,15,0.6);
}

.product-grid-container {
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out backwards;
}

.product-card.hidden { 
    display: none; 
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(241, 196, 15, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.card-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.product-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    filter: grayscale(40%) brightness(0.8);
}

.product-card:hover .product-image {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.1);
}

.card-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    z-index: 2;
}

.badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 20%);
}

.badge-new { background: #f1c40f; box-shadow: 0 0 15px rgba(241,196,15,0.3); }
.badge-hot { background: #e74c3c; color: #fff; box-shadow: 0 0 15px rgba(231, 76, 60, 0.3); }
.badge-free { background: #2ecc71; color: #000; box-shadow: 0 0 15px rgba(46, 204, 113, 0.3); }

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: 0.3s;
}

.product-card:hover .product-info h4 {
    color: var(--primary-color);
}

.product-info p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.btn-card {
    padding: 10px 24px;
    background: rgba(241, 196, 15, 0.05);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1.5px;
    z-index: 1;
    display: inline-block;
}

.btn-card:after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 100%;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
    z-index: -1;
}

.btn-card:hover { 
    color: #000;
    box-shadow: 0 0 25px rgba(241,196,15,0.4);
}

.btn-card:hover:after { 
    width: 100%; 
}

.loader {
    grid-column: 1 / -1;
    text-align: center;
    margin: 80px auto;
    width: 60px; height: 60px;
    border: 3px solid rgba(255,255,255,0.05);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

@media (max-width: 992px) {
    .shop-hero h1 { font-size: 2.8rem; }
    .shop-container { flex-direction: column; gap: 30px; }
    .shop-sidebar { width: 100%; position: static; margin-bottom: 20px; }
    .category-link.active { border-left: 3px solid transparent; border-bottom: 2px solid var(--primary-color); background: rgba(241,196,15,0.05); }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}