/* --- GLOBAL STYLES --- */
:root {
    --ink: #433422;
    --gold: #c5a059;
    --bg-overlay: rgba(255, 253, 240, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: url('images/b7.png') fixed center/cover no-repeat !important;
}

.visitor-wrapper { max-width: 1400px; margin: 0 auto; padding: 10px; }

/* --- HEADER (BASED ON YOUR SCREENSHOT) --- */
.main-header {
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    padding: 10px 30px;
    border-radius: 50px;
    margin-bottom: 25px;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.2rem; white-space: nowrap; }

.search-bar-container {
    flex: 1;
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 2px 5px 2px 20px;
    max-width: 600px;
    border: 1px solid #eee;
}

.search-bar-container input { border: none; flex: 1; padding: 8px; font-size: 0.9rem; outline: none; }

.search-btn {
    background: var(--gold);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.auth-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn-auth { text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 8px 18px; border-radius: 10px; }
.btn-auth.login { background: #eee; color: var(--ink); }
.btn-auth.register { border: 1px solid #ddd; background: #fff; color: var(--ink); }

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns for laptop */
    gap: 15px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.product-card:hover { transform: translateY(-5px); }

.image-area { width: 100%; height: 220px; position: relative; }
.main-img { width: 100%; height: 100%; object-fit: cover; }

.custom-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(212, 163, 115, 0.9); color: #fff;
    font-size: 0.6rem; padding: 4px 10px; border-radius: 50px;
    font-weight: 600;
}

.info-area { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.prod-name { font-size: 0.9rem; margin-bottom: 8px; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.curr-price { color: var(--gold); font-weight: 600; font-size: 1.1rem; }
.sold-count { font-size: 0.7rem; color: #888; }

.action-buttons { display: flex; gap: 5px; margin-bottom: 10px; }
.btn-sm { flex: 1; text-align: center; text-decoration: none; font-size: 0.65rem; font-weight: 600; padding: 10px 2px; border-radius: 6px; }
.btn-sm.outline { border: 1px solid var(--gold); color: var(--gold); }
.btn-sm.solid { background: var(--gold); color: #fff; }

.custom-link { font-size: 0.65rem; color: var(--gold); text-decoration: underline; text-align: center; font-weight: 600; margin-top: auto; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .main-header { border-radius: 20px; padding: 15px; }
    .header-content { flex-direction: column; gap: 10px; }
    .search-bar-container { width: 100%; max-width: 100%; order: 3; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } /* 2 columns for mobile */
    .image-area { height: 160px; }
    
    .prod-name { font-size: 0.8rem; height: 38px; }
    .curr-price { font-size: 0.95rem; }
}