* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f5f8;
    color: #333;
}

header {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 15px 30px;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e3e3e3;
}

.hero {
    text-align: center;
    padding: 30px 15px 20px;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.hero p {
    color: #666;
    margin-bottom: 20px;
}

.filter-container select {
    padding: 8px 12px;
    font-size: 0.95rem;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #ffffff;
    outline: none;
    cursor: pointer;
    width: auto;           /* Automatically shrinks to fit the text width */
    max-width: 200px;      /* Prevents it from expanding too much */
    text-align: left;
}
/* Grid layout logic */
.product-grid {
    display: grid;
    gap: 15px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Phone Display: 2 Columns */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
}

/* Laptop Display: 6 Columns */
@media (min-width: 769px) {
    .product-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Card Styling Matching Pic 2 */
.card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #1f2df4;
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

.meta-row strong.highlight {
    color: #321bff;
}

.view-btn {
    margin-top: auto;
    padding: 8px;
    background-color: #1d00f7;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
}

/* Detail View */
.hidden {
    display: none !important;
}

.detail-wrapper {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: #480be2;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
}

.detail-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.detail-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-box {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.telegram-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

#search-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    width: 200px;
}

#search-input:focus {
    border-color: #2d04c1;
}
.brand-banner {
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.banner-container {
    max-width: 900px;
    width: 90%;
    height: 220px; /* Matches standard product card height */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.banner-logo {
    height: 100%;
    aspect-ratio: 1 / 1; /* Keeps logo perfectly square */
    object-fit: cover;
    border-radius: 8px;
}

.banner-text {
    text-align: left;
    max-width: 500px;
}

.banner-text h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: #1a1a2e;
}

.banner-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.5;
}