/* ==========================================================
   Category Grid 13 — Bottom Bar
   ========================================================== */
.ahcat13-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px 16px 64px;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ahcat13-section * { box-sizing: border-box; }

.ahcat13-head {
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}
.ahcat13-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7a7066;
}
.ahcat13-heading {
    margin: 6px 0 8px;
    font-family: inherit;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #1c1917;
}
.ahcat13-intro {
    margin: 0;
    max-width: 460px;
    font-size: 15px;
    line-height: 1.6;
    color: #6b635b;
}
.ahcat13-all,
.ahcat13-all:hover,
.ahcat13-all:focus {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #1c1917;
    text-decoration: none;
    border-bottom: 2px solid #1c1917;
    padding-bottom: 2px;
}

.ahcat13-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.ahcat13-card {
    --ahcat13-bg: #F3EEE7;
    --ahcat13-mid: #E4DDD3;
    --ahcat13-acc: #1c1917;
    --ahcat13-ink: #1c1917;
    text-decoration: none;
}
.ahcat13-card:hover,
.ahcat13-card:focus { text-decoration: none; }
.ahcat13-card:focus-visible {
    outline: 3px solid #1c1917;
    outline-offset: 5px;
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .ahcat13-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .ahcat13-heading { font-size: 26px; }
    .ahcat13-grid { gap: 16px 12px; }
    .ahcat13-head { flex-direction: column; align-items: flex-start; }
}

.ahcat13-grid { gap: 20px; }
.ahcat13-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background: var(--ahcat13-mid);
}
.ahcat13-section .ahcat13-card img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform .7s ease;
}
.ahcat13-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 12px 12px 16px;
    transition: background .35s ease;
}
.ahcat13-title {
    margin: 0;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #1c1917;
    transition: color .35s;
}
.ahcat13-go {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ahcat13-ink);
    color: #fff;
    font-size: 17px;
    transition: background .35s, color .35s, transform .35s;
}
.ahcat13-tag {
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ahcat13-ink);
    background: var(--ahcat13-bg);
    padding: 5px 12px;
    border-radius: 999px;
}
.ahcat13-section .ahcat13-card:hover img { transform: scale(1.08); }
.ahcat13-section .ahcat13-card:hover .ahcat13-bar { background: var(--ahcat13-ink); }
.ahcat13-section .ahcat13-card:hover .ahcat13-title { color: #fff; }
.ahcat13-card:hover .ahcat13-go { background: #fff; color: var(--ahcat13-ink); transform: rotate(-45deg); }

@media (max-width: 600px) {
    .ahcat13-card { border-radius: 14px; }
    .ahcat13-bar { left: 6px; right: 6px; bottom: 6px; padding: 8px 8px 8px 10px; border-radius: 10px; }
    .ahcat13-title { font-size: 13px; }
    .ahcat13-go { width: 28px; height: 28px; font-size: 14px; }
    .ahcat13-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ahcat13-card img, .ahcat13-bar, .ahcat13-go { transition: none; }
}

/* --- Header alignment helper (set by the Header Alignment control) --- */
.ahcat13-intro { margin-left: var(--ahcat13-intro-l, 0); margin-right: var(--ahcat13-intro-r, 0); }

/* --- Alignment: match plugin containers (Product Card 1–7, Category Grid 1–9): full width, 65px sides, 5px on mobile --- */
.ahcat13-section { max-width: 100%; padding-left: 65px; padding-right: 65px; }
@media (max-width: 768px) {
    .ahcat13-section { padding: 1px; }
}
