/* ==========================================================================
   Modern product listing  (?p=product)  — bulk1000.com
   Scoped under .product-* class names so it is safe to load site-wide.
   ========================================================================== */
.product-section { background: #f7f9fc; padding: 55px 0 70px; }

/* ---- Toolbar: category tabs + search ---- */
.product-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 28px;
}
.product-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.product-filter__tab {
    -webkit-appearance: none; appearance: none;
    border: 1px solid #e3e8ef;
    background: #fff;
    color: #4a4a4a;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}
.product-filter__tab span { color: #9aa5b1; font-weight: 600; }
.product-filter__tab:hover { border-color: #2C6DDE; color: #2C6DDE; }
.product-filter__tab.is-active {
    background: #1e649d;
    border-color: #1e649d;
    color: #fff;
    box-shadow: 0 6px 16px rgba(30,100,157,.30);
}
.product-filter__tab.is-active span { color: rgba(255,255,255,.72); }

.product-search { position: relative; flex: 0 0 auto; min-width: 250px; }
.product-search i {
    position: absolute; left: 16px; top: 50%;
    transform: translateY(-50%); color: #9aa5b1;
}
.product-search input {
    width: 100%;
    border: 1px solid #e3e8ef;
    border-radius: 999px;
    padding: 11px 18px 11px 42px;
    font-size: 15px;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.product-search input:focus {
    border-color: #2C6DDE;
    box-shadow: 0 0 0 3px rgba(44,109,222,.12);
}

/* ---- Card grid ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 2px 10px rgba(16,30,54,.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(16,30,54,.14);
    border-color: #dbe7f7;
    color: inherit;
    text-decoration: none !important;
}
.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f7fa;
    overflow: hidden;
}
.product-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    color: #1e649d;
    font-size: 12px; font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(16,30,54,.10);
}
.product-card__body {
    display: flex; flex-direction: column; flex: 1;
    padding: 16px 18px 18px;
}
.product-card__title {
    font-size: 16px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    color: #1f2d3d;
    margin: 0 0 10px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}
.product-card:hover .product-card__title { color: #1e649d; }
.product-card__meta {
    display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
    font-size: 12.5px; color: #9aa5b1;
    margin-bottom: 14px;
}
.product-card__meta span { white-space: nowrap; }
.product-card__meta i { margin-right: 4px; }
.product-card__footer {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
}
.product-card__price { font-size: 20px; font-weight: 700; color: #D7000B; }
.product-card__price small { font-size: 13px; font-weight: 600; }
.product-card__ask { font-size: 15px; font-weight: 600; color: #1e649d; }
.product-card__arrow {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #eef4fb; color: #1e649d;
    display: flex; align-items: center; justify-content: center;
    transition: all .25s ease;
}
.product-card:hover .product-card__arrow { background: #1e649d; color: #fff; }

/* ---- Empty state ---- */
.product-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9aa5b1;
    font-size: 17px;
}

/* ---- Entrance ---- */
@keyframes productCardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.product-grid .product-card { animation: productCardIn .5s ease both; }

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .product-section { padding: 32px 0 45px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-toolbar { flex-direction: column; align-items: stretch; }
    .product-search { min-width: 0; }
    .product-card__body { padding: 13px 14px 15px; }
    .product-card__title { font-size: 14.5px !important; min-height: 42px; }
    .product-card__price { font-size: 17px; }
}
@media (max-width: 360px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Shared page hero  (.page-hero on _breadcrumb.php)
   ========================================================================== */
.page-hero {
    position: relative;
    margin-top: 130px !important;
    padding: 40px 0;
    background: linear-gradient(120deg, #1f3a78 0%, #1a7fc4 100%);
    overflow: hidden;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 88% -40%, rgba(255,255,255,.22), transparent 55%),
      radial-gradient(circle at 0% 130%, rgba(255,255,255,.10), transparent 45%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: 28px !important;
    line-height: 1.35 !important;
    color: #fff !important;
    font-weight: 700 !important;
    margin: 0 !important;
}
.page-hero .breadcrumb {
    background: transparent !important;
    padding: 0 !important; margin: 0 !important; border-radius: 0 !important;
}
.page-hero .breadcrumb ul {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 2px; margin: 0; padding: 0; list-style: none;
}
.page-hero .breadcrumb ul li { color: rgba(255,255,255,.85); font-size: 14px; }
.page-hero .breadcrumb ul li a { color: #fff !important; text-decoration: none !important; opacity: .9; }
.page-hero .breadcrumb ul li a:hover { opacity: 1; text-decoration: underline !important; }
.page-hero .breadcrumb ul li + li::before { content: "›"; margin: 0 9px; color: rgba(255,255,255,.55); }
@media (max-width: 991px) {
    .page-hero { margin-top: 96px !important; padding: 24px 0; }
    .page-hero h1 { font-size: 21px !important; }
    .page-hero .breadcrumb ul { margin-top: 8px; }
}

/* ==========================================================================
   Top navigation  (_navtop.php)
   ========================================================================== */
.header-with-topbar .top-header-area {
    background-image: linear-gradient(120deg, #1f3a78 0%, #1a7fc4 100%) !important;
}
.top-header-area a.text-link-white-2 {
    color: rgba(255,255,255,.92) !important;
    font-weight: 500;
    transition: color .2s ease;
}
.top-header-area a.text-link-white-2:hover { color: #fff !important; text-decoration: none; }

nav.navbar.navbar-top { box-shadow: 0 3px 16px rgba(16,30,54,.07); }
header nav .navbar-nav > li > a {
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: #2a3342 !important;
    position: relative;
}
header nav .navbar-nav > li > a:hover { color: #1a7fc4 !important; }
@media (min-width: 992px) {
    header nav.navbar .navbar-nav > li > a::after {
        content: ""; position: absolute; left: 15px; right: 15px; bottom: 22px;
        height: 2px; background: #1a7fc4; border-radius: 2px;
        transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
    }
    header nav.navbar .navbar-nav > li:hover > a::after,
    header nav.navbar .navbar-nav > li.active > a::after { transform: scaleX(1); }
    header nav.navbar .navbar-nav > li.active > a,
    nav.navbar.bootsnav ul.nav > li.active > a {
        background-image: none !important;
        background: transparent !important;
        color: #1a7fc4 !important;
    }
}
@media (max-width: 991px) {
    header nav.navbar .navbar-nav > li.active > a,
    nav.navbar.bootsnav ul.nav > li.active > a {
        background-image: none !important;
        background: #eef4fb !important;
        color: #1a7fc4 !important;
    }
}
/* CTA button at the end of the menu */
.navbar-nav > li.nav-cta { display: flex; align-items: center; }
.navbar-nav > li.nav-cta > a {
    background: linear-gradient(120deg, #1f3a78, #1a7fc4) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 10px 22px !important;
    box-shadow: 0 6px 16px rgba(26,127,196,.30);
    transition: transform .2s ease, box-shadow .2s ease;
}
.navbar-nav > li.nav-cta > a::after { display: none !important; }
.navbar-nav > li.nav-cta > a:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(26,127,196,.42);
}
@media (min-width: 992px) { .navbar-nav > li.nav-cta { margin-left: 12px; } }
@media (max-width: 991px) {
    .navbar-nav > li.nav-cta > a { display: inline-block; margin: 8px 15px; }
}

/* ==========================================================================
   Article cards  (widget-article.php)
   ========================================================================== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid #eef1f5; border-radius: 16px; overflow: hidden;
    text-decoration: none !important; color: inherit;
    box-shadow: 0 2px 10px rgba(16,30,54,.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(16,30,54,.14); border-color: #dbe7f7; color: inherit; }
.article-card__media { position: relative; aspect-ratio: 16 / 10; background: #f5f7fa; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.article-card:hover .article-card__media img { transform: scale(1.06); }
.article-card__media::after {
    content: "บทความ"; position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,.92); color: #1a7fc4;
    font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(16,30,54,.10);
}
.article-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: #9aa5b1; margin-bottom: 10px; }
.article-card__meta span { white-space: nowrap; }
.article-card__meta i { margin-right: 4px; }
.article-card__title {
    font-size: 16.5px !important; line-height: 1.5 !important; font-weight: 600 !important;
    color: #1f2d3d; margin: 0 0 14px !important;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card:hover .article-card__title { color: #1a7fc4; }
.article-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: #1a7fc4; font-weight: 600; font-size: 14px; }
.article-card__more i { transition: transform .25s ease; }
.article-card:hover .article-card__more i { transform: translateX(4px); }
@media (max-width: 991px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .article-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Product detail  (pd.php)
   ========================================================================== */
.detail-section { padding: 48px 0; background: #fff; }
.pd-cover {
    width: 100%; border-radius: 16px; border: 1px solid #eef1f5;
    box-shadow: 0 12px 34px rgba(16,30,54,.10);
}
.pd-title {
    font-size: 26px !important; line-height: 1.32 !important; font-weight: 700 !important;
    color: #1f2d3d !important; margin: 0 0 8px !important;
}
.pd-rating { color: #FFA700; font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; }
.pd-price-box {
    background: #fff5f5; border: 1px solid #ffd9d9; border-radius: 14px;
    padding: 12px 20px; margin-bottom: 18px; display: inline-block; min-width: 170px;
}
.pd-price-label { font-size: 13px; color: #b0888a; font-weight: 600; display: block; margin-bottom: 2px; }
.pd-price { font-size: 30px; font-weight: 800; color: #D7000B; line-height: 1; }
.pd-price small { font-size: 17px; font-weight: 700; }
.pd-meta { font-size: 13px; color: #8a94a3; margin-bottom: 20px; display: flex; gap: 18px; flex-wrap: wrap; }
.pd-meta i { margin-right: 5px; }
.pd-desc { font-size: 16px; line-height: 1.85; color: #48515d; margin-bottom: 22px; }
.pd-desc ul { padding-left: 1.15em; margin-bottom: 0; }
.pd-desc li { margin-bottom: 6px; }
.pd-contact-title { font-size: 14px; font-weight: 700; color: #1f2d3d; margin: 4px 0 10px; }

/* ==========================================================================
   Article detail  (ad.php)
   ========================================================================== */
.article-detail { max-width: 860px; margin: 0 auto; }
.ad-title {
    font-size: 30px !important; line-height: 1.32 !important; font-weight: 700 !important;
    color: #1f2d3d !important; margin: 0 0 12px !important;
}
.ad-meta {
    display: flex; gap: 18px; flex-wrap: wrap;
    font-size: 13.5px; color: #8a94a3;
    margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #eef1f5;
}
.ad-meta i { margin-right: 5px; }
.ad-cover { width: 100%; border-radius: 16px; box-shadow: 0 12px 34px rgba(16,30,54,.12); margin-bottom: 26px; }
.article-content { font-size: 17px; line-height: 1.95; color: #3f4854; }
.article-content p { margin: 0 0 1.1em; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1em 0; }
.article-content h2, .article-content h3 { color: #1f2d3d; margin: 1.4em 0 .6em; font-weight: 700; line-height: 1.4; }
.article-content ul, .article-content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.article-content li { margin-bottom: .5em; }

/* shared related block */
.related-section { background: #f7f9fc; padding: 46px 0; margin-top: 44px; }
.related-title {
    font-size: 24px !important; font-weight: 700 !important; color: #1f2d3d !important;
    text-align: center; margin: 0 0 28px !important;
}
@media (max-width: 767px) {
    .detail-section { padding: 30px 0; }
    .ad-title { font-size: 23px !important; }
    .pd-title { font-size: 21px !important; }
    .article-content { font-size: 16px; }
}

/* ==========================================================================
   About page  (about.php)
   ========================================================================== */
.about-intro { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.about-logo { width: 100%; max-width: 220px; margin: 0 auto 22px; display: block; }
.about-heading {
    font-size: 30px !important; font-weight: 700 !important; color: #1f2d3d !important;
    margin: 0 0 16px !important;
}
.about-lead { font-size: 17px; line-height: 1.85; color: #56606d; margin: 0; }
.about-services { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.about-service {
    display: flex; gap: 18px; align-items: flex-start;
    background: #fff; border: 1px solid #eef1f5; border-radius: 16px;
    padding: 20px 22px; box-shadow: 0 2px 10px rgba(16,30,54,.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about-service:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(16,30,54,.10); border-color: #dbe7f7; }
.about-service__icon {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #1f3a78, #1a7fc4); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    box-shadow: 0 6px 14px rgba(26,127,196,.30);
}
.about-service__body { flex: 1; }
.about-service__title { font-size: 17px !important; font-weight: 700 !important; color: #1f2d3d !important; margin: 2px 0 6px !important; }
.about-service__text { font-size: 15.5px; line-height: 1.75; color: #56606d; margin: 0; }
.about-note {
    max-width: 920px; margin: 26px auto 0;
    background: #eef4fb; border-left: 4px solid #1a7fc4; border-radius: 10px;
    padding: 18px 22px; font-size: 15.5px; line-height: 1.8; color: #3f4854;
}
@media (max-width: 575px) {
    .about-heading { font-size: 24px !important; }
    .about-service { flex-direction: column; gap: 12px; }
}

/* ==========================================================================
   Contact page  (contact.php)
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #fff; border: 1px solid #eef1f5; border-radius: 16px;
    padding: 30px 20px; text-decoration: none !important; color: inherit;
    box-shadow: 0 2px 10px rgba(16,30,54,.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(16,30,54,.13); border-color: #dbe7f7; color: inherit; }
.contact-card__icon {
    width: 66px; height: 66px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 27px; margin-bottom: 16px;
}
.contact-card--fb    .contact-card__icon { background: #e7f0fd; color: #1877F2; }
.contact-card--phone .contact-card__icon { background: #e6f0f9; color: #1e649d; }
.contact-card--line  .contact-card__icon { background: #e3f7e8; color: #06C755; }
.contact-card--mail  .contact-card__icon { background: #fdf2e0; color: #e8920a; }
.contact-card__label { font-size: 14px; color: #9aa5b1; font-weight: 600; margin-bottom: 6px; }
.contact-card__value { font-size: 17px; font-weight: 700; color: #1f2d3d; word-break: break-word; }
.contact-card:hover .contact-card__value { color: #1a7fc4; }
.contact-address {
    display: flex; gap: 18px; align-items: center;
    background: #fff; border: 1px solid #eef1f5; border-radius: 16px;
    padding: 24px 26px; margin-top: 22px; box-shadow: 0 2px 10px rgba(16,30,54,.05);
}
.contact-address__icon {
    flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
    background: #fdecec; color: #D7000B;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.contact-address__label { font-size: 14px; color: #9aa5b1; font-weight: 600; margin-bottom: 4px; }
.contact-address__text { font-size: 16px; line-height: 1.7; color: #3f4854; margin: 0; }
@media (max-width: 991px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-address { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Homepage About band  (section_about_1.php)
   ========================================================================== */
.home-about { background: #f7f9fc; padding: 64px 0; }
.home-about__eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    color: #1a7fc4; font-weight: 700; font-size: 14px; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 14px;
}
.home-about__eyebrow::before { content: ""; width: 28px; height: 2px; background: #1a7fc4; border-radius: 2px; }
.home-about__title {
    font-size: 25px !important; line-height: 1.5 !important; font-weight: 700 !important;
    color: #1f2d3d !important; margin: 0 0 16px !important;
}
.home-about__desc { font-size: 16px; line-height: 1.85; color: #56606d; margin: 0 0 22px; }
.home-about__features {
    list-style: none; padding: 0; margin: 0 0 26px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 22px;
}
.home-about__features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; color: #3f4854; font-weight: 500; }
.home-about__features i { color: #1a7fc4; margin-top: 4px; flex: 0 0 auto; font-size: 15px; }
.home-about__fb {
    background: #fff; border: 1px solid #eef1f5; border-radius: 18px; padding: 14px;
    box-shadow: 0 14px 36px rgba(16,30,54,.10);
}
.home-about__fb-head {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; color: #1f2d3d; font-size: 15px; padding: 6px 8px 12px;
    border-bottom: 1px solid #f0f2f6; margin-bottom: 12px;
}
.home-about__fb-head i { color: #1877F2; font-size: 20px; }
.home-about__fb .fb-page { display: block; text-align: center; }
@media (max-width: 991px) {
    .home-about { padding: 46px 0; text-align: center; }
    .home-about__eyebrow { justify-content: center; }
    .home-about__features { text-align: left; max-width: 480px; margin-left: auto; margin-right: auto; }
    .home-about__fb { margin-top: 30px; max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 575px) {
    .home-about__features { grid-template-columns: 1fr; }
    .home-about__title { font-size: 21px !important; }
}
