/* ============================================================
   HAND ONE INDUSTRY - THEME BRIDGE
   Maps the PHP engine's inner-page classes onto the
   Hand One green-gold theme, and overrides the legacy
   modern-style.css pink palette with the brand palette.
   ============================================================ */

/* ---- Palette override for legacy inner-page CSS ---- */
:root {
    --primary-color: #0A5230;
    --secondary-color: #0F7A45;
    --primary: #0A5230;
    --royal: #0F7A45;
    --gold: #C79A3B;
}

body.otherpags {
    font-family: 'Poppins', sans-serif;
    color: #1E2A22;
    background: #ffffff;
    padding-top: 0;
}

/* ---- Page header (breadcrumb hero) ---- */
.page-header-section {
    background: linear-gradient(rgba(5,19,12,0.82), rgba(5,19,12,0.82)), url('../images/manufacturing-bg.jpg') center/cover no-repeat;
    padding: 70px 0 60px;
    text-align: center;
    margin-bottom: 10px;
}
.page-header-section h1 {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}
.page-header-section .breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}
.page-header-section .breadcrumb-nav a {
    color: #E8C778;
    text-decoration: none;
    font-weight: 500;
}
.page-header-section .breadcrumb-nav a:hover { color: #ffffff; }
.page-header-section .breadcrumb-nav i { color: #E8C778; }

/* ---- Generic content pages ---- */
.content-section { padding: 60px 0; background: #ffffff; }
.content-box {
    background: #ffffff;
    border: 1px solid #E8F1EA;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(10,82,48,0.08);
    color: #1E2A22;
    line-height: 1.85;
}
.content-box h1, .content-box h2, .content-box h3, .content-box h4 { color: #05130C; font-family: 'Poppins', sans-serif; }
.content-box a { color: #0F7A45; }
.content-box img { max-width: 100%; height: auto; }

.contact-form-box {
    background: #F6FAF7;
    border: 1px solid #E8F1EA;
    border-radius: 14px;
    padding: 28px;
}
.contact-form-box h3 { color: #0A5230; margin-bottom: 18px; }
.contact-form-box label { font-weight: 600; font-size: 0.85rem; color: #05130C; }
.contact-form-box input,
.contact-form-box textarea {
    width: 100%;
    border: 1px solid #D5E3DA;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.9rem;
    margin-bottom: 14px;
    background: #ffffff;
    color: #1E2A22;
}
.contact-form-box input:focus,
.contact-form-box textarea:focus { outline: none; border-color: #0F7A45; }
.btn-submit {
    background: linear-gradient(135deg, #12814A, #094C2A);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px 34px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(11,91,51,0.45); }

/* ---- Products listing page ---- */
.products-page-layout { display: flex; gap: 30px; padding: 40px 0; }
.products-sidebar { width: 260px; flex-shrink: 0; }
.sidebar-widget {
    background: #fff;
    border: 1px solid #E8F1EA;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(10,82,48,0.08);
}
.sidebar-widget-title {
    background: #0A5230;
    color: #fff;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list > li { border-bottom: 1px solid #EEF3EF; }
.category-list > li:last-child { border-bottom: none; }
.cat-main-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: #1E2A22;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F6FAF7;
}
.cat-main-link:hover,
.cat-main-link.active-main { color: #0F7A45; background: #EAF6EF; }
.cat-main-link i { font-size: 11px; transition: transform 0.2s; color: #8a8a8a; }
.cat-main-link.open i { transform: rotate(90deg); }
.sub-cat-list { list-style: none; padding: 0; margin: 0; display: none; background: #fff; }
.sub-cat-list.open { display: block; }
.sub-cat-list li a {
    display: flex;
    align-items: center;
    padding: 9px 18px 9px 30px;
    color: #424242;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #F3F7F4;
}
.sub-cat-list li a:before { content: '\203A'; margin-right: 8px; color: #C79A3B; font-size: 16px; line-height: 1; }
.sub-cat-list li a:hover,
.sub-cat-list li a.active-sub { color: #0F7A45; background: #F2FAF5; padding-left: 35px; }

.products-main { flex: 1; min-width: 0; }
.products-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.products-header h2 { font-size: 1.7rem; font-weight: 800; color: #05130C; margin: 0; }
.product-count-badge {
    background: #0F7A45;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.product-card {
    background: #fff;
    border: 1px solid #E8F1EA;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 8px rgba(10,82,48,0.06);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(10,82,48,0.16);
    border-color: #C79A3B;
}
.product-image { position: relative; padding: 14px; background: #F6FAF7; }
.product-image img { width: 100%; height: 240px; object-fit: contain; }
.product-art-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #C79A3B;
    color: #07241A;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.product-info { padding: 16px 18px 20px; }
.product-info h4 { font-size: 1rem; font-weight: 700; color: #05130C; margin-bottom: 6px; }
.product-card-meta { font-size: 0.78rem; color: #424242; margin-bottom: 12px; }
.product-actions { margin-top: auto; }
.btn-view-detail {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #12814A, #094C2A);
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-view-detail:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11,91,51,0.4); color: #fff; }
.no-products-found { text-align: center; padding: 60px 20px; color: #424242; }
.no-products-found i { font-size: 3rem; color: #C79A3B; margin-bottom: 14px; }

/* ---- Product detail page ---- */
.product-detail-section { padding: 40px 0; }
.product-detail-image .MagicZoom { display: block; background: #F6FAF7; border: 1px solid #E8F1EA; border-radius: 14px; padding: 18px; text-align: center; }
.product-detail-image .MagicZoom img { max-height: 480px; width: auto; margin: 0 auto; object-fit: contain; }
.product-thumbnails { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.product-thumbnails a {
    width: 72px; height: 72px;
    background: #F6FAF7;
    border: 2px solid #E8F1EA;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-thumbnails a img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbnails a:hover, .product-thumbnails a.mz-thumb-selected { border-color: #C79A3B; }
.product-detail-info h2 { font-size: 1.8rem; font-weight: 800; color: #05130C; margin-bottom: 8px; }
.product-detail-art { color: #C79A3B; font-weight: 700; margin-bottom: 16px; }
.product-details-box {
    background: #F6FAF7;
    border: 1px solid #E8F1EA;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}
.details-heading { font-weight: 700; color: #0A5230; margin-bottom: 10px; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.details-content { color: #1E2A22; line-height: 1.85; }
.moq-info {
    background: #fff;
    border: 1px solid #E8F1EA;
    border-left: 4px solid #0F7A45;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
}
.moq-info h4 { color: #0A5230; font-size: 1rem; margin-bottom: 10px; }
.trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.trust-badge {
    background: #F6FAF7;
    border: 1px solid #E8F1EA;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    font-size: 0.8rem;
    color: #1E2A22;
    font-weight: 600;
}
.trust-badge i { display: block; font-size: 1.3rem; color: #0F7A45; margin-bottom: 8px; }
.inquiry-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-inquiry-primary {
    background: linear-gradient(135deg, #12814A, #094C2A);
    color: #fff;
}
.btn-inquiry-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11,91,51,0.4); color: #fff; }
.btn-inquiry-whatsapp { background: #25D366; color: #fff; }
.btn-inquiry-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); color: #fff; }

/* ---- Quote form ---- */
.section-quote { padding: 50px 0 70px; background: #ffffff; }
.quote-form-box {
    background: #fff;
    border: 1px solid #E8F1EA;
    border-radius: 14px;
    padding: 34px;
    box-shadow: 0 4px 24px rgba(10,82,48,0.08);
}
.subtitle { color: #C79A3B; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.form-group-modern label { font-weight: 600; font-size: 0.85rem; color: #05130C; margin-bottom: 6px; display: block; }
.form-group-modern .req { color: #C0392B; }
.form-group-modern input,
.form-group-modern select,
.form-group-modern textarea {
    width: 100%;
    border: 1px solid #D5E3DA;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 0.9rem;
    background: #FDFEFD;
    color: #1E2A22;
    transition: border-color 0.2s;
}
.form-group-modern input:focus,
.form-group-modern select:focus,
.form-group-modern textarea:focus { outline: none; border-color: #0F7A45; box-shadow: 0 0 0 3px rgba(15,122,69,0.12); }
.security-box { display: flex; align-items: center; gap: 14px; }
.security-code-display {
    background: #0A5230;
    color: #E8C778;
    font-weight: 800;
    letter-spacing: 0.35em;
    padding: 10px 18px;
    border-radius: 8px;
    user-select: none;
    font-family: 'Courier New', monospace;
}
.btn-submit-quote {
    background: linear-gradient(135deg, #12814A, #094C2A);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.btn-submit-quote:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,91,51,0.45); }
.quote-info-panel {
    background: linear-gradient(135deg, #0A5230, #073B22);
    border-radius: 14px;
    padding: 30px;
    color: #fff;
    margin-bottom: 25px;
}
.quote-info-panel h4 { color: #E8C778; margin-bottom: 12px; }

/* ---- Basket ---- */
.basket-table thead { background: #0A5230; }
.basket-table thead th { color: #fff; }
.btn-add-to-cart, .btn-update-cart, .btn-checkout {
    background: linear-gradient(135deg, #12814A, #094C2A);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.btn-remove { color: #C0392B !important; }

/* ---- Success page (submit.php) ---- */
.success-box { border: 1px solid #E8F1EA; box-shadow: 0 8px 30px rgba(10,82,48,0.10); }
.success-icon { background: linear-gradient(135deg, #12814A, #094C2A) !important; box-shadow: 0 8px 25px rgba(15,122,69,0.3) !important; }

/* ---- Bootstrap col alignment inside themed pages ---- */
.otherpags .container { max-width: 1200px; padding-left: 15px; padding-right: 15px; }
.otherpags section { position: relative; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .products-page-layout { flex-direction: column; }
    .products-sidebar { width: 100%; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-badges { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .products-grid { grid-template-columns: 1fr; }
    .page-header-section h1 { font-size: 1.7rem; }
    .content-box { padding: 20px; }
    .quote-form-box { padding: 22px; }
}

/* ============================================================
   MINI GRID (Bootstrap-like column system for inner pages)
   quote.php / detail.php / content.php use col-md-* classes
   ============================================================ */
.row { display: flex; flex-wrap: wrap; margin-left: -10px; margin-right: -10px; }
.row > [class*="col-"] { position: relative; width: 100%; padding-left: 10px; padding-right: 10px; }
@media (min-width: 768px) {
    .col-md-1 { width: 8.3333%; } .col-md-2 { width: 16.6667%; }
    .col-md-3 { width: 25%; }     .col-md-4 { width: 33.3333%; }
    .col-md-5 { width: 41.6667%; } .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.3333%; } .col-md-8 { width: 66.6667%; }
    .col-md-9 { width: 75%; }      .col-md-10 { width: 83.3333%; }
    .col-md-11 { width: 91.6667%; } .col-md-12 { width: 100%; }
}
@media (min-width: 992px) {
    .col-lg-8 { width: 66.6667%; }
    .col-lg-4 { width: 33.3333%; }
}
@media (min-width: 576px) {
    .col-sm-6 { width: 50%; }
}
.alert-success {
    background: #EAF6EF;
    border: 1px solid #9BD4B4;
    color: #0A5230;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* ============================================================
   HERO BANNER OVERLAY + TEXT (DB-managed banners)
   ============================================================ */
.simple-banner-slide { position: relative; }
.hero-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(3,20,12,0.82) 30%, rgba(7,60,34,0.55) 70%, rgba(3,20,12,0.35) 100%);
}
.hero-slide-content {
    position: absolute; z-index: 2;
    left: 6%; bottom: 12%;
    max-width: 620px;
    color: #fff;
}
.hero-slide-content .kicker {
    display: inline-block;
    background: rgba(199,154,59,0.22);
    color: #E8C778;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    padding: 7px 16px; border-radius: 999px;
    margin-bottom: 14px;
}
.hero-slide-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 3.4rem);
    font-weight: 900; line-height: 1.08;
    margin-bottom: 14px;
    text-shadow: 0 3px 18px rgba(0,0,0,0.5);
}
.hero-slide-content h1 span { color: #E8C778; }
.hero-slide-content p {
    font-size: 1rem; color: rgba(255,255,255,0.85);
    line-height: 1.7; margin-bottom: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-slide-content .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }
@media (max-width: 768px) {
    .hero-slide-content { left: 5%; right: 5%; bottom: 8%; }
    .hero-slide-content p { display: none; }
}

/* =====================================================================
   GS SEO Category Sections - FAQ accordion + compact category chip strip
   Added for professional layout of below-grid SEO content.
   Content stays in HTML (crawlable); collapsed by default to keep
   category pages short and clean when product grids grow.
   ===================================================================== */
.gs-seo-card { background:#F6FAF7; border:1px solid #E8F1EA; border-radius:14px; padding:22px 24px; }
.gs-seo-heading { margin:0 0 14px; color:#05130C; font-size:21px; line-height:1.35; }
.gs-faq-accordion { display:flex; flex-direction:column; gap:10px; }
.gs-faq-item { background:#fff; border:1px solid #E0EBE4; border-radius:10px; overflow:hidden; }
.gs-faq-item summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 16px; font-weight:600; color:#05130C; font-size:15px; line-height:1.5; }
.gs-faq-item summary::-webkit-details-marker { display:none; }
.gs-faq-item .gs-faq-chevron { color:#0F7A45; font-size:12px; transition:transform .25s ease; flex:0 0 auto; }
.gs-faq-item[open] .gs-faq-chevron { transform:rotate(180deg); }
.gs-faq-item[open] summary { border-bottom:1px solid #E8F1EA; }
.gs-faq-answer { padding:12px 16px 14px; }
.gs-faq-answer p { margin:0; color:#424242; line-height:1.8; font-size:14px; }
.gs-faq-item-dark { background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.14); }
.gs-faq-item-dark summary { color:#fff; }
.gs-faq-item-dark .gs-faq-chevron { color:#E8C778; }
.gs-faq-item-dark[open] summary { border-bottom:1px solid rgba(255,255,255,.12); }
.gs-faq-item-dark .gs-faq-answer p { color:rgba(255,255,255,.82); }
.gs-cat-strip { background:#F6FAF7; border:1px solid #E8F1EA; border-radius:12px; padding:14px 18px; display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; }
.gs-cat-strip-label { font-weight:700; color:#05130C; font-size:14px; display:inline-flex; align-items:center; gap:8px; }
.gs-cat-strip-label i { color:#0F7A45; }
.gs-cat-chips { display:flex; flex-wrap:wrap; gap:8px; }
.gs-cat-chips a, .gs-chip { display:inline-block; background:#fff; border:1px solid #D5E3DA; color:#05130C; text-decoration:none; padding:7px 13px; border-radius:999px; font-weight:600; font-size:13px; line-height:1.4; transition:all .2s ease; }
.gs-cat-chips a:hover, .gs-chip:hover { background:#0F7A45; border-color:#0F7A45; color:#fff; }
.gs-cat-strip-dark { background:#05130C; border-color:#05130C; }
.gs-cat-strip-dark .gs-cat-strip-label { color:#fff; }
.gs-cat-strip-dark .gs-cat-strip-label i { color:#E8C778; }
.gs-cat-strip-dark .gs-cat-chips a { background:rgba(199,154,59,.15); border-color:rgba(199,154,59,.4); color:#E8C778; }
.gs-cat-strip-dark .gs-cat-chips a:hover { background:#E8C778; border-color:#E8C778; color:#05130C; }
@media (max-width:600px){ .gs-seo-card{padding:16px;} .gs-cat-strip{padding:12px 14px;} }
