/* Shop Specific Styles */
.shop-nav {
    background: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--brand-red);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.shop-hero {
    background: linear-gradient(rgba(15, 76, 129, 0.9), rgba(15, 76, 129, 0.8)), url('../assets/uniform-sample.jpg') center/cover;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.shop-hero h1, 
.shop-hero p {
    color: white;
}

.shop-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid #E5E7EB;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-base);
    font-family: var(--font-main);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid #E5E7EB;
}

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

.product-img {
    height: 250px;
    position: relative;
    background: #F9FAFB;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed to cover for better filling */
    object-position: top center;
}

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-details {
    padding: 1.5rem;
}

.category {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-details h3 {
    font-size: 1.1rem;
    margin: 0.25rem 0 0.5rem;
    color: var(--text-dark);
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-bottom: 1rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    z-index: 1001;
    box-shadow: var(--shadow-2xl);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F3F4F6;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.remove-btn {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
}
