/* assets/css/all-jewellery.css */

:root {
    --primary-gold: #d4af37;
    --secondary-gold: #c5a028;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #f8f9fa;
    --border-color: #eee;
}

body {
    padding-top: 160px;
    background-color: var(--bg-light);
}

/* Hero Section */
.all-hero {
    background: linear-gradient(to right, #1a1a1a, #2d2d2d);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Collections Strip (Horizontal Scroll) */
.collections-strip {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    margin-bottom: 30px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    justify-content: flex-start; /* Allows scrolling on mobile */
}

/* Hide scrollbar */
.collections-strip::-webkit-scrollbar { height: 6px; }
.collections-strip::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.coll-pill {
    flex: 0 0 auto;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    cursor: pointer;
    transition: transform 0.2s;
}

.coll-pill:hover { transform: translateY(-5px); }

.coll-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
    margin-bottom: 8px;
    padding: 2px;
    background: #fff;
}

.coll-name {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
}

/* Filter Bar */
.filter-container {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 140px; /* Below header */
    z-index: 90;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    min-width: 120px;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 250px;
    font-size: 14px;
}

.sort-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--text-dark);
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

/* Product Grid */
.master-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.img-box {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f9f9f9;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .main-img { transform: scale(1.1); }

.badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge.new { background: #28a745; }
.badge.sale { background: #dc3545; }
.badge.best { background: var(--primary-gold); color: #000; }

.details {
    padding: 15px;
    text-align: center;
}

.cat-name {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.prod-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-gold);
}

/* Responsive */
@media (max-width: 768px) {
    .collections-strip { gap: 15px; padding: 15px; }
    .coll-pill { width: 80px; }
    .coll-img { width: 60px; height: 60px; }
    .filter-row { flex-direction: column; align-items: stretch; }
    .search-input { width: 100%; }
    .sort-btn { margin-left: 0; width: 100%; text-align: center; }
}