/* ============================================================
   shop-by-category.css  –  v2  (lifestyle images edition)
   Link AFTER Bootstrap:
     <link rel="stylesheet" href="/css/shop-by-category.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
.sbc-section {
    --sbc-font-serif : 'Playfair Display', Georgia, serif;
    --sbc-font-sans  : 'DM Sans', -apple-system, sans-serif;
    --sbc-text-dark  : #111111;
    --sbc-text-muted : #6b7280;
    --sbc-border     : rgba(0,0,0,0.08);
    --sbc-card-radius: 16px;
    --sbc-shadow-hover: 0 20px 50px rgba(0,0,0,0.13);
}

/* ── Section / background ───────────────────────────────────── */
.sbc-section {
    /* Warm sand-to-ivory diagonal gradient — elegant & neutral */
    background:
        radial-gradient(ellipse at 15% 50%, rgba(210,193,168,0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 20%, rgba(188,170,148,0.25) 0%, transparent 55%),
        linear-gradient(145deg, #f7f3ee 0%, #faf8f5 45%, #f2ede6 100%);
    padding: 64px 0 60px;
    font-family: var(--sbc-font-sans);
    color: var(--sbc-text-dark);
}

/* ── Header ─────────────────────────────────────────────────── */
.sbc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sbc-heading { flex: 1 1 auto; }

.sbc-section .sbc-title {
    font-family: var(--sbc-font-serif);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--sbc-text-dark);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.sbc-subtitle {
    font-size: 15px;
    color: var(--sbc-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* View All button */
.sbc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border: 1.5px solid rgba(0,0,0,0.18);
    border-radius: 100px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    color: var(--sbc-text-dark);
    font-family: var(--sbc-font-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    align-self: center;
    transition: background 0.22s, border-color 0.22s, box-shadow 0.22s, transform 0.2s;
}

.sbc-view-all:hover {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,0,0,0.3);
    color: var(--sbc-text-dark);
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.09);
    transform: translateY(-1px);
}

.sbc-view-all svg { transition: transform 0.22s ease; }
.sbc-view-all:hover svg { transform: translateX(4px); }

/* ── Cards row ──────────────────────────────────────────────── */
.sbc-row { margin-left: -8px; margin-right: -8px; }
.sbc-row > [class*="col-"] { padding-left: 8px; padding-right: 8px; margin-bottom: 16px; }

/* ── Card ───────────────────────────────────────────────────── */
.sbc-card {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: var(--sbc-card-radius);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}

.sbc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sbc-shadow-hover);
}

.sbc-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.sbc-card-link:hover,
.sbc-card-link:focus { text-decoration: none; color: inherit; }

/* ── Image wrapper ──────────────────────────────────────────── */
.sbc-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e8e3dc;
    flex-shrink: 0;
}

@supports not (aspect-ratio: 3/2) {
    .sbc-image-wrap::before { content: ''; display: block; padding-top: 66.6%; }
}

/* Subtle dark gradient at bottom so icon badge reads clearly */
.sbc-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.28) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.sbc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
    background: #e0dbd3;
}

.sbc-card:hover .sbc-image { transform: scale(1.07); }

/* ── Icon badge ─────────────────────────────────────────────── */
.sbc-icon {
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    z-index: 2;
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sbc-card:hover .sbc-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

/* ── Card body ──────────────────────────────────────────────── */
.sbc-card-body {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sbc-section .sbc-card-title {
    font-family: var(--sbc-font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--sbc-text-dark);
    margin: 0 0 7px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.sbc-card-desc {
    font-size: 13.5px;
    color: var(--sbc-text-muted);
    line-height: 1.5;
    margin: 0 0 16px;
    flex: 1;
}

/* Shop Now link */
.sbc-shop-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sbc-text-dark);
    transition: gap 0.22s ease;
    margin-top: auto;
}

.sbc-card-link:hover .sbc-shop-now { gap: 10px; }
.sbc-shop-now svg { transition: transform 0.22s ease; flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .sbc-section .sbc-title { font-size: 38px; }
}

@media (max-width: 991px) {
    .sbc-section { padding: 48px 0 36px; }
    .sbc-section .sbc-title { font-size: 34px; }
}

@media (max-width: 767px) {
    .sbc-section { padding: 36px 0 24px; }
    .sbc-header { flex-direction: column; gap: 16px; }
    .sbc-section .sbc-title { font-size: 28px; }
    .sbc-view-all { padding: 11px 20px; font-size: 13px; }
    .sbc-icon { width: 38px; height: 38px; left: 10px; bottom: 10px; }
    .sbc-icon svg { width: 17px; height: 17px; }
    .sbc-card-body { padding: 12px 13px 14px; }
    .sbc-section .sbc-card-title { font-size: 14px; }
    .sbc-card-desc { font-size: 12px; margin-bottom: 10px; }
    .sbc-shop-now { font-size: 12.5px; }
}
