/* Public site — Public/search-gallery.php. Shared styles: assets/css/site.css */

.gallery-hero { text-align: center; max-width: 760px; margin: 8px auto 26px; }
.gallery-hero .page-title { margin-inline: auto; max-width: 22ch; }
.gallery-hero .page-subtitle { margin-inline: auto; }

.search-box { position: relative; margin-top: 22px; }
.search-box i.fa-magnifying-glass { position: absolute; top: 50%; inset-inline-start: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box input {
    width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
    padding: 16px 52px; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; box-shadow: 0 10px 30px rgba(23, 23, 23, 0.06);
    transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear {
    position: absolute; top: 50%; inset-inline-end: 12px; transform: translateY(-50%);
    border: 0; background: var(--sand); color: var(--ink); border-radius: 999px;
    padding: 6px 12px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.search-clear[hidden] { display: none; }

.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .88rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.result-count { color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.product-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 24px rgba(23, 23, 23, 0.05);
    transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23, 23, 23, 0.1); }

.product-media { aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center; overflow: hidden; }
/* Phones: a wider, lower image so more than one product fits on screen */
@media (max-width: 600px) { .product-media { aspect-ratio: 16 / 9; } }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media i { font-size: 2.6rem; color: rgba(255, 255, 255, 0.92); }
.tone-blue   { background: linear-gradient(145deg, #0f3d78, var(--color-primary) 70%, #78a9ff); }
.tone-sand   { background: linear-gradient(145deg, #8a6a45, #c8a57c 70%, #e6d3b8); }
.tone-slate  { background: linear-gradient(145deg, #1d2430, #475569 70%, #94a3b8); }
.tone-copper { background: linear-gradient(145deg, #6c3418, var(--copper) 70%, #ddb08a); }

.product-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.product-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0; color: var(--ink); }
.product-copy {
    color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.product-tags span { background: var(--sand); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 600; }
.product-footer { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.product-price small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.product-price strong { font-size: 1.1rem; color: var(--ink); unicode-bidi: isolate; direction: ltr; display: inline-block; }

.btn-solid, .btn-ghost { padding: 10px 16px; font-size: .9rem; } /* base: site.css */
.btn-solid:hover { background: var(--color-primary-hover); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.gallery-empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.gallery-empty[hidden] { display: none; }
.gallery-empty i { font-size: 2rem; color: var(--muted); margin-bottom: 12px; }
.gallery-empty h2 { font-size: 1.15rem; margin: 0 0 6px; }
.gallery-empty p { color: var(--muted); margin: 0 0 16px; }

.section-title { font-size: 1.3rem; margin: 44px 0 16px; }
.service-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.service-tile i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.service-tile strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.service-tile p { color: var(--muted); margin: 0; font-size: .92rem; }

.cta-strip {
    margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover)); color: #fff; border-radius: var(--radius-xl); padding: 28px;
}
.cta-strip h2 { margin: 0 0 6px; font-size: 1.3rem; }
.cta-strip p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.cta-strip .btn-solid { background: #fff; color: var(--color-primary-hover); }
.cta-strip .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) { .service-strip { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .search-box input { padding: 14px 46px; }
    .cta-strip { padding: 22px; }
}
