/* CSS tiện ích riêng cho các trang website giới thiệu (Giới thiệu, Sản phẩm, Liên hệ).
   Nạp qua resources/views/site/layout.blade.php, đặt trước CSS riêng của từng trang. */

html { scroll-behavior: smooth; }

a { color: inherit; }
img { max-width: 100%; }

/* ---------- Layout chung ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3rem 0; }
.section-alt {
    background: linear-gradient(180deg, rgba(201, 24, 43, .035) 0%, rgba(245, 158, 11, .05) 100%);
    border-top: 1px solid rgba(17, 17, 17, .04); border-bottom: 1px solid rgba(17, 17, 17, .04);
}
.section-tag {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px;
    color: var(--pnp-gray-muted); margin-bottom: 0.75rem; display: inline-block;
}
h1.page-title, h2.section-title {
    font-weight: 800; line-height: 1.3; letter-spacing: -0.02em;
}
h1.page-title { font-size: clamp(1.5rem, 5.5vw, 2.25rem); margin-bottom: 1rem; }
h2.section-title { font-size: clamp(1.25rem, 4vw, 1.75rem); margin-bottom: 0.75rem; }
.highlight-red {
    background: linear-gradient(135deg, #c9182b 0%, #d97706 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lead { font-size: clamp(0.88rem, 2.6vw, 1rem); color: var(--pnp-gray-text); line-height: 1.7; }
.center { text-align: center; }
.center .lead { max-width: 760px; margin: 0 auto; }

.page-hero { padding: 3rem 1.5rem 1.5rem; text-align: center; max-width: 960px; margin: 0 auto; }

.card {
    background: var(--pnp-card-bg); border-radius: 24px; padding: 2rem;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.06); border: 1px solid rgba(201, 24, 43, 0.08);
    position: relative; overflow: hidden;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.85rem 1.8rem; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em;
    text-decoration: none; cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--pnp-red); color: #fff; box-shadow: 0 8px 20px rgba(201, 24, 43, 0.28); }
.btn-primary:hover { background: var(--pnp-red-hover); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--pnp-red); border-color: var(--pnp-red-border); }
.btn-outline:hover { background: var(--pnp-red-light); }

.badge {
    display: inline-flex; align-items: center; gap: 6px; background: var(--pnp-red-light);
    color: var(--pnp-red); padding: 0.4rem 1rem; border-radius: 999px;
    font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
}

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon-circle {
    width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center;
    justify-content: center; background: linear-gradient(135deg, var(--pnp-red) 0%, #7a0c18 100%);
    color: #fff; font-size: 1.3rem; flex-shrink: 0; box-shadow: 0 8px 18px rgba(201, 24, 43, .28);
}

/* ---------- Thẻ sản phẩm ---------- */
.product-card {
    display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
    border: 1px solid var(--pnp-border);
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--pnp-red-border); box-shadow: 0 18px 36px rgba(201, 24, 43, 0.14); }
.product-card-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.product-thumb {
    aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 1.35rem;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f6 100%);
    color: var(--pnp-red); font-size: 3rem;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 1.1rem 1.2rem .6rem; flex: 1; }
.product-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pnp-gold-dark); }
.product-body h3 { font-size: 1rem; font-weight: 800; margin: .25rem 0 0; line-height: 1.35; }
.product-body p { font-size: .84rem; color: var(--pnp-gray-text); }
.product-footer {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .75rem 1.2rem 1.1rem;
}
.product-price { font-size: 1.02rem; font-weight: 900; color: var(--pnp-red); }
.product-price.contact { font-size: .84rem; font-weight: 700; color: var(--pnp-gray-muted); }
.add-to-cart-btn {
    width: 38px; height: 38px; border-radius: 12px; border: none; flex-shrink: 0;
    background: linear-gradient(135deg, var(--pnp-red) 0%, #7a0c18 100%); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; cursor: pointer;
    text-decoration: none; box-shadow: 0 8px 18px rgba(201, 24, 43, .28); transition: transform .15s ease;
}
.add-to-cart-btn:hover { transform: scale(1.08); }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .card { padding: 1.5rem 1.1rem; border-radius: 20px; }
    .section { padding: 2rem 0; }
    .page-hero { padding: 2rem 1rem 1rem; }
}
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: fit-content; margin: 1.25rem auto 1.5rem;
    font-size: .8rem; font-weight: 600; color: var(--pnp-gray-muted);
    background: #fff; border: 1px solid var(--pnp-border); padding: .5rem 1.1rem 0.5rem .9rem; border-radius: 999px;
    box-shadow: 0 6px 16px rgba(17, 17, 17, .05);
}
.breadcrumb a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; transition: color .15s ease; }
.breadcrumb a:hover { color: var(--pnp-red); }
.breadcrumb a i.fa-house {
    width: 24px; height: 24px; border-radius: 50%; background: var(--pnp-red-light); color: var(--pnp-red);
    display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; transition: background .15s ease;
}
.breadcrumb a:hover i.fa-house { background: var(--pnp-red); color: #fff; }
.breadcrumb i.fa-chevron-right { font-size: .55rem; opacity: .4; }
.breadcrumb .current { color: var(--pnp-red); font-weight: 800; }

/* ---------- Split: khối ảnh minh hoạ + nội dung, dùng cho trang Giới thiệu ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr .9fr; }
.split.reverse .split-visual { order: 2; }
.split-visual {
    position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--pnp-red) 0%, #7a0c18 100%);
    box-shadow: 0 30px 60px -18px rgba(201, 24, 43, .38);
}
.split-visual.gold { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); box-shadow: 0 30px 60px -18px rgba(217, 119, 6, .35); }
.split-visual.dark { background: linear-gradient(135deg, #262626 0%, #0a0a0a 100%); box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .4); }
.split-visual::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .18), transparent 55%);
}
.split-visual i { font-size: 6.5rem; color: rgba(255, 255, 255, .92); }
.split-badge {
    position: absolute; bottom: 1.25rem; left: 1.25rem; display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .96); color: var(--pnp-dark); padding: .6rem 1rem; border-radius: 14px;
    font-weight: 800; font-size: .8rem; box-shadow: 0 12px 26px rgba(17, 17, 17, .18);
}
.split-badge i { color: var(--pnp-red); font-size: 1rem; }
.split-body ul { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: .7rem; }
.split-body li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--pnp-gray-text); }
.split-body li i { color: #16a34a; margin-top: 3px; flex-shrink: 0; }
@media (max-width: 900px) {
    .split, .split.reverse { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .split.reverse .split-visual { order: 0; }
    .split-body ul { text-align: left; }
    .split-visual { aspect-ratio: 16 / 10; }
}

/* ---------- Timeline: hành trình phát triển ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
    content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(180deg, var(--pnp-red), var(--pnp-gold));
}
.timeline-item { position: relative; padding-left: 58px; margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: 8px; top: 2px; width: 28px; height: 28px; border-radius: 50%;
    background: #fff; border: 3px solid var(--pnp-red); box-shadow: 0 6px 14px rgba(201, 24, 43, .22);
}
.timeline-item .year {
    display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--pnp-gold-dark); margin-bottom: .3rem;
}
.timeline-item h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: .3rem; }
.timeline-item p { font-size: .87rem; color: var(--pnp-gray-text); }

/* ---------- Trust strip: cam kết ngắn gọn dạng hàng icon ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-strip-item { text-align: center; padding: 1.25rem .75rem; }
.trust-strip-item i { font-size: 1.6rem; color: var(--pnp-red); margin-bottom: .6rem; display: block; }
.trust-strip-item span { font-size: .82rem; font-weight: 700; color: var(--pnp-gray-text); display: block; }
@media (max-width: 768px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Toolbar & kết quả lọc (trang Sản phẩm) ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.result-count { font-size: .85rem; font-weight: 700; color: var(--pnp-gray-muted); }
.result-count b { color: var(--pnp-dark); }
.active-filter {
    display: inline-flex; align-items: center; gap: 8px; background: var(--pnp-red-light); color: var(--pnp-red);
    padding: .4rem .5rem .4rem 1rem; border-radius: 999px; font-weight: 700; font-size: .82rem; text-decoration: none;
}
.active-filter i.fa-xmark { background: rgba(201, 24, 43, .15); width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .65rem; }

/* ---------- Ribbon "Nổi bật" trên thẻ sản phẩm ---------- */
.product-card { position: relative; }
.ribbon-featured {
    position: absolute; top: 14px; left: -7px; z-index: 2; background: var(--pnp-gold-gradient); color: #fff;
    font-size: .64rem; font-weight: 800; letter-spacing: .04em; padding: 5px 12px 5px 16px; border-radius: 0 8px 8px 0;
    box-shadow: 0 8px 16px rgba(217, 119, 6, .35);
}
.ribbon-featured::after {
    content: ""; position: absolute; left: 0; top: 100%; border-width: 5px 7px 0 0; border-style: solid;
    border-color: #92400e transparent transparent transparent;
}


/* ---------- Hộp thông báo (giỏ hàng, đặt hàng, mua nhanh, chi tiết sản phẩm) ---------- */
.alert-info-box {
    background: var(--pnp-red-light); border: 1px solid var(--pnp-red-border); color: var(--pnp-red);
    padding: .9rem 1.1rem; border-radius: 16px; font-weight: 600; font-size: .9rem; margin-bottom: 1.25rem;
}
.alert-success-box {
    background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .3); color: #047857;
    padding: .9rem 1.1rem; border-radius: 16px; font-weight: 600; font-size: .9rem; margin-bottom: 1.25rem;
}
