* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    background: #dff2ff; /* baby blue */
    color: #333;
	padding-top: 75px;
}


/* Sticky top bar */
.top-bar {
    position: sticky;
    top: 0;
	text-align: center;
    z-index: 100;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.top-bar h1 {
    margin-bottom: 15px;
    font-size: 2.2rem;
}


/* Mobile dropdown */
.mobile-sort {
    display: none;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #0077b6;
    font-size: 14px;
    background: #f0faff;
    color: #0077b6;
}



/* Grid */
.lanyard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 30px;
}

/* Cards */
.lanyard-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
	position: relative;
}

.lanyard-card:hover {
    transform: translateY(-8px);
}

.lanyard-card img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    background: #ffffff;
	display: block;
    margin: auto;
}

/* Info */
.lanyard-info {
    padding: 18px;
}

.lanyard-info h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.lanyard-info p {
    font-size: 0.9rem;
    color: #555;
}

.specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.specs span {
    background: #eef6fb;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0077b6;
}

small {
    color: #777;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 363 / 450;
    overflow: hidden;
    background: #f8fbff;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bestseller Badge */
.bestseller-badge {
    position: absolute;
    top: 16px;
    right: -30px;
    background: #ff5722;
    color: #fff;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    z-index: 3;
}

.order-btn {
    display: block;
    margin: 10px auto 0;
    text-align: center;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #fff;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}


/* SORT BAR */
.sort-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.sort-label {
    font-weight: 700;
    color: #0077b6;
    font-size: 14px;
}

/* Sort buttons container */
.sort-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Sort buttons */
.sort-menu a {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid #0077b6;
    background: white;
    color: #0077b6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sort-menu a:hover {
    background: #0077b6;
    color: white;
}

/* Active sort */
.sort-menu a.active {
    background: #0077b6;
    color: white;
}




/* FILTER BAR */
.filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px auto;
    text-align: center;
}

.filter-label {
    font-weight: 700;
    color: #ff8c00;
    margin-right: 6px;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* Filter buttons */
.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #ff8c00;
    color: #ff8c00;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s ease;
    background: white;
}

.filter-btn:hover {
    background: #ff8c00;
    color: white;
}

/* Active filter */
.filter-btn.active {
    background: #ff8c00;
    color: white;
}

/* Bestseller special */
.filter-btn.bestseller {
    border-color: gold;
    color: gold;
}

.filter-btn.bestseller:hover {
    background: gold;
    color: #222;
}

.create-lanyard-section{
text-align:center;
margin-top:30px;
}

.create-lanyard-btn{
display:inline-block;
padding:14px 22px;
background:#ff6600;
color:#fff;
font-size:16px;
font-weight:bold;
border-radius:8px;
text-decoration:none;
transition:0.2s;
}

.create-lanyard-btn:hover{
background:#e65c00;
transform:scale(1.05);
}


/* Responsive behavior */
@media (max-width: 768px) {
    .desktop-sort {
        display: none;
    }

    .mobile-sort {
        display: block;
        width: 100%;
        max-width: 260px;
    }
	
	 .filter-bar {
        gap: 8px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
	    .lanyard-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .lanyard-card img {        
		height: 380px;
    }
	
	.sort-menu {
        flex-direction: column;
        align-items: center;
    }

    .sort-menu a {
        width: 80%;  /* makes them slightly smaller than full width */
        max-width: none;
    }	
}
