/* ═══════════════════════════════════════════════════════════════════
   Leon Dio — Cup & Kỷ Niệm Chương Page
   ═══════════════════════════════════════════════════════════════════ */

/* ── Container override ─────────────────────────────────────────── */
#page .container { padding: 0 20px; }

@media (max-width: 768px) {
    #page .container { padding: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   ① HERO BANNER
   ═══════════════════════════════════════════════════════════════════ */
.ckn-hero {
    position: relative;
    background:
        linear-gradient(rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.55) 100%),
        url('https://leondio.vn/wp-content/uploads/2026/03/Leon-dio-giftset.jpeg')
        center / cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 100px 0 56px;
}
.ckn-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.3) 100%);
    pointer-events: none;
}
.ckn-hero .container { position: relative; z-index: 1; }
.ckn-hero__content   { max-width: 680px; }

.ckn-hero__eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}
.ckn-hero__title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 20px;
}
.ckn-hero__desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   ② CATEGORY NAV CARDS
   ═══════════════════════════════════════════════════════════════════ */
.ckn-nav {
    background: #111;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.ckn-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.ckn-nav-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    border-right: 1px solid rgba(255,255,255,0.07);
    transition: background 0.28s, color 0.28s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.ckn-nav-card:last-child { border-right: none; }

/* Gold top-bar indicator */
.ckn-nav-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.ckn-nav-card:hover::before,
.ckn-nav-card.active::before { transform: scaleX(1); }

.ckn-nav-card:hover,
.ckn-nav-card.active {
    background: rgba(197,160,89,0.08);
    color: #fff;
    text-decoration: none;
}

/* Icon circle */
.ckn-nav-card__icon-wrap {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: var(--primary);
    transition: border-color 0.28s, background 0.28s, transform 0.28s;
}
.ckn-nav-card:hover .ckn-nav-card__icon-wrap,
.ckn-nav-card.active .ckn-nav-card__icon-wrap {
    border-color: var(--primary);
    background: rgba(197,160,89,0.15);
    transform: scale(1.08);
}

/* Text block */
.ckn-nav-card__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.ckn-nav-card__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.35;
    color: #fff;
}
.ckn-nav-card__cta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.25s, gap 0.25s;
}
.ckn-nav-card:hover .ckn-nav-card__cta {
    opacity: 1;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   ③ PRODUCT SECTIONS
   ═══════════════════════════════════════════════════════════════════ */
.ckn-section     { padding: 72px 0 80px; background: #fff; }
.ckn-section--alt{ background: #f8f7f5; }

.ckn-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}
.ckn-section__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 16px;
    line-height: 1.2;
}
.ckn-section__title span { color: var(--primary); }
.ckn-section__desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}

/* Gallery grid — 4 cols × 3 rows = 12 ảnh */
.ckn-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.ckn-gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0efed;
    border-radius: 4px;
}
.ckn-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.ckn-gallery-item:hover img { transform: scale(1.06); }

/* CTAs */
.ckn-ctas {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.ckn-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s, transform 0.15s;
    line-height: 1;
    width: auto !important;        /* chặn WooCommerce/theme override width:100% */
    box-shadow: none !important;
    text-shadow: none !important;
}
.ckn-btn:hover { opacity: 0.88; transform: translateY(-2px); text-decoration: none; }
.ckn-btn--zalo  { background: #0068FF !important; color: #fff !important; }
.ckn-btn--zalo svg { flex-shrink: 0; border-radius: 5px; }
.ckn-btn--order { background: var(--secondary) !important; color: #fff !important; }
.ckn-btn--dark  { background: var(--secondary) !important; color: #fff !important; }

/* ═══════════════════════════════════════════════════════════════════
   ④ POPUP FORM
   ═══════════════════════════════════════════════════════════════════ */
.ckn-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.ckn-popup-overlay.open { display: flex; }

.ckn-popup-box {
    background: #fff;
    width: 100%;
    max-width: 460px;
    border-radius: 4px;
    padding: 40px 36px 36px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    animation: popupIn 0.22s ease;
}
@keyframes popupIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ckn-popup-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    font-size: 22px; color: #999;
    cursor: pointer; line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}
.ckn-popup-close:hover { color: var(--text-dark); }

.ckn-popup-head { text-align: center; margin-bottom: 28px; }
.ckn-popup-icon {
    width: 52px; height: 52px;
    background: rgba(197,160,89,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px; color: var(--primary);
}
.ckn-popup-title {
    font-family: var(--font-heading);
    font-size: 22px; font-weight: 600;
    color: var(--text-dark); margin: 0 0 6px;
}
.ckn-popup-sub { font-size: 13px; color: #999; margin: 0; }

.ckn-form-group { margin-bottom: 16px; }
.ckn-form-group label {
    display: block;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: #666; margin-bottom: 7px;
}
.ckn-form-group label span { color: #e60808; }
.ckn-form-group input {
    width: 100%; height: 48px;
    border: 1px solid #ddd; border-radius: 2px;
    padding: 0 14px; font-size: 14px;
    color: var(--text-dark); background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none; box-sizing: border-box;
}
.ckn-form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(197,160,89,0.15);
}
.ckn-form-group input::placeholder { color: #bbb; }

.ckn-form-msg { font-size: 13px; margin-bottom: 12px; padding: 10px 14px; border-radius: 2px; }
.ckn-form-msg--error { background: #fff2f2; color: #c0392b; border-left: 3px solid #e60808; }

.ckn-form-submit {
    width: 100%; height: 52px;
    background: var(--secondary); color: #fff;
    border: none; border-radius: 2px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: background 0.25s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 4px;
}
.ckn-form-submit:hover:not(:disabled) { background: var(--primary); }
.ckn-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.ckn-form-note {
    font-size: 12px; color: #aaa;
    text-align: center; margin: 14px 0 0;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ckn-form-note strong { color: #666; }

/* ═══════════════════════════════════════════════════════════════════
   ⑤ LIGHTBOX
   ═══════════════════════════════════════════════════════════════════ */
.ckn-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 199999;
    align-items: center;
    justify-content: center;
}
.ckn-lb.open { display: flex; }

.ckn-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(6px);
}
.ckn-lb-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 120px);
    max-height: 90vh;
}
.ckn-lb-img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 2px;
    display: block;
    animation: lbIn 0.22s ease;
    box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}
@keyframes lbIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* Close button */
.ckn-lb-close {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 2;
    background: rgba(255,255,255,0.12);
    border: none; color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%; font-size: 26px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.ckn-lb-close:hover { background: rgba(255,255,255,0.24); }

/* Prev / Next */
.ckn-lb-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.1);
    border: none; color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%; font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.15s;
}
.ckn-lb-nav:hover { background: rgba(197,160,89,0.45); transform: translateY(-50%) scale(1.08); }
.ckn-lb-prev { left: 16px; }
.ckn-lb-next { right: 16px; }

/* Counter */
.ckn-lb-counter {
    position: absolute;
    bottom: 18px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.65);
    font-size: 11px; letter-spacing: 1.5px;
    background: rgba(0,0,0,0.45);
    padding: 4px 14px; border-radius: 20px;
    white-space: nowrap;
}

/* Gallery item cursor */
.ckn-gallery-item { cursor: zoom-in; }

@media (max-width: 768px) {
    .ckn-lb-stage { max-width: 100vw; }
    .ckn-lb-prev { left: 6px; }
    .ckn-lb-next { right: 6px; }
    .ckn-lb-nav { width: 40px; height: 40px; font-size: 14px; }
}

.ckn-success { text-align: center; padding: 10px 0 4px; }
.ckn-success-icon { font-size: 44px; color: #27ae60; margin-bottom: 16px; }
.ckn-success h4 {
    font-family: var(--font-heading);
    font-size: 20px; font-weight: 600;
    color: var(--text-dark); margin: 0 0 10px;
}
.ckn-success p { font-size: 14px; color: #666; line-height: 1.7; margin: 0 0 24px; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ckn-hero__title { font-size: 42px; }
}
@media (max-width: 768px) {
    .ckn-hero { min-height: 260px; padding: 100px 0 44px; }
    .ckn-hero__title { font-size: 30px; }
    .ckn-hero__desc  { font-size: 14px; }

    .ckn-nav-grid { grid-template-columns: repeat(2, 1fr); }
    .ckn-nav-card { padding: 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.07); gap: 12px; }
    .ckn-nav-card:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.07); }
    .ckn-nav-card:nth-child(even) { border-right: none; }
    .ckn-nav-card:nth-child(3),
    .ckn-nav-card:nth-child(4)    { border-bottom: none; }
    .ckn-nav-card__icon-wrap { width: 38px; height: 38px; font-size: 15px; }
    .ckn-nav-card__cta { display: none; }

    .ckn-section { padding: 48px 0 56px; }
    .ckn-section__title { font-size: 28px; }
    .ckn-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
    .ckn-hero__title  { font-size: 24px; }
    .ckn-section__title { font-size: 22px; }
    .ckn-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ckn-popup-box { padding: 32px 20px 28px; }
    .ckn-btn { padding: 12px 20px !important; font-size: 12px; }
}
