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

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

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

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

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

.ahcat14-card {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    overflow: hidden;
    background: var(--ahcat14-bg);
    padding: 20px;
    transition: transform .35s ease;
}
.ahcat14-letter {
    position: absolute;
    right: -14px;
    bottom: -60px;
    font-size: 300px;
    font-weight: 800;
    line-height: 1;
    color: var(--ahcat14-mid);
    transition: transform .5s ease;
    pointer-events: none;
}
.ahcat14-title {
    position: relative;
    margin: 0 0 4px;
    font-family: inherit;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ahcat14-ink);
}
.ahcat14-desc {
    position: relative;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ahcat14-ink);
    opacity: .75;
    max-width: 90%;
}
.ahcat14-photo {
    position: relative;
    margin-top: auto;
    width: 68%;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    border: 4px solid #fff;
    background: #fff;
    transform: rotate(-3deg);
    transition: transform .45s ease;
}
.ahcat14-section .ahcat14-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
    border-radius: 0;
}
.ahcat14-go {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--ahcat14-ink);
    padding: 9px 16px;
    border-radius: 999px;
    transition: gap .25s ease;
}
.ahcat14-card:hover { transform: translateY(-6px); }
.ahcat14-card:hover .ahcat14-letter { transform: translate(-10px, -12px) scale(1.05); }
.ahcat14-card:hover .ahcat14-photo { transform: rotate(0) scale(1.04); }
.ahcat14-card:hover .ahcat14-go { gap: 10px; }

@media (max-width: 600px) {
    .ahcat14-card { padding: 12px; border-radius: 16px; }
    .ahcat14-letter { font-size: 180px; bottom: -36px; right: -8px; }
    .ahcat14-title { font-size: 16px; }
    .ahcat14-desc { display: none; }
    .ahcat14-photo { width: 74%; border-width: 3px; border-radius: 12px; }
    .ahcat14-go { right: 10px; bottom: 10px; padding: 0; width: 30px; height: 30px; justify-content: center; font-size: 0; }
    .ahcat14-go span { font-size: 14px; }
    .ahcat14-card:hover .ahcat14-go { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .ahcat14-card, .ahcat14-letter, .ahcat14-photo, .ahcat14-go { transition: none; }
}

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

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