@import url('https://fonts.googleapis.com/css2?family=Saira+Stencil+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&display=swap');
/* =========================
   HEADER BARS
   ========================= */

html {
    overflow-y: scroll;
}
html, body {
    overflow-x: hidden !important;
}

/* Top black bar (3 lines) */
.top-bar {
    background: #0F172A;
    height: 72px;
    width: 100%;
    display: flex;
    align-items: center;
}

.top-bar-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.brand-logo {
    font-family: 'Saira Stencil One', sans-serif;
    font-size: 36px;
    color: #ffffff;
    letter-spacing: 1px;
	text-decoration: none;
    display: inline-block;
}

.brand-color {
    color: #4F7CAC; 
}

/* Menu bar */
.menu-bar {
    background: #1E293B; /* dark grey, not black */
    height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-link {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.menu-link:hover {
    text-decoration: underline;
}

/* Thin white vertical separator */
.menu-separator {
    width: 1px;
    height: 18px;
    background: #fff;
}

/* Green info bar (1 line) */
.info-bar {
    background: #355C7D; 
    color: #ffffff;
    height: 28px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background: #f5f6f8;
}

/* =========================
   FILTER BLOCK
   ========================= */

.filter-box {
	border-radius: 10px;
    padding: 16px;
    border: 1px solid #cfcfcf;
    background: #F1F5FA;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto; /* 2 columns + button column */
    grid-template-rows: auto auto;
    gap: 14px;
    align-items: end;
}
.filter-field:nth-child(1) { grid-column: 1; grid-row: 1; } /* Make */
.filter-field:nth-child(2) { grid-column: 2; grid-row: 1; } /* Condition */
.filter-field:nth-child(3) { grid-column: 1; grid-row: 2; } /* Location */
.filter-field:nth-child(4) { grid-column: 2; grid-row: 2; } /* HP */

.filter-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}

.filter-field select {
	border-radius: 6px;
    width: 100%;
    padding: 8px;
    font-size: 14px;
}

/* Search button */
.filter-action {
    grid-column: 3;
    grid-row: 2; /* bottom row */
}

.search-btn {
    width: 100%;
    padding: 10px;
    background: #000000;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;   /* slightly rounded */
}


.search-btn:hover {
    background: #222;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* FORCE 5 columns */
    gap: 12px;                                       /* tighter spacing */
    padding: 12px;
}

/* Make it responsive */
@media (max-width: 1400px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .grid { grid-template-columns: repeat(1, 1fr); } }

/* Product listing grids (home page) */
.newly-added-grid, 
.recommended-grid,
.grid-search {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1400px) {
    .newly-added-grid,
    .recommended-grid,
    .grid-search {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .newly-added-grid,
    .recommended-grid,
    .grid-search {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .newly-added-grid,
    .recommended-grid,	
    .grid-search {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .newly-added-grid,
    .recommended-grid,
    .grid-search {
        grid-template-columns: repeat(1, 1fr);
    }
}

.card {
    background: #F1F5FA;
    border: 1px solid #cfcfcf;   /* stronger visible frame */
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 160px;               /* slightly smaller */
    object-fit: cover;
    display: block;              /* removes baseline gap */
    margin: 0;                   /* no spacing */
    padding: 0;
}

.card-body {
    padding: 8px 10px;           /* reduce internal spacing */
    display: flex;
    flex-direction: column;
    gap: 6px;                    /* tight spacing between text lines */
}


.card h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.price {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.btn {
    margin-top: auto;
    padding: 8px;
    background: #1a73e8;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    border-radius: 3px;
}
/* =========================
   RECOMMENDED SECTION
   ========================= */

.recommended {
    max-width: 1400px;
    margin: 30px auto 10px;
    padding: 0 12px;
}

.recommended h2 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Lower card area clickable, but keep normal typography */
.card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Ensure the browser never underlines on hover/visited */
.card-link:link,
.card-link:visited,
.card-link:hover,
.card-link:active {
    text-decoration: none;
}

/* Keep your existing card-body spacing */
.card-link .card-body {
    padding: 8px 10px;
}

/* Explicit colors to prevent "everything looks like a link" */
.card-title {
    color: #000;               /* title black */
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
    font-weight: 600;
    transition: color 0.15s ease;
}

.card-link .meta {
    color: #666;               /* second line grey */
    font-size: 14px;
    margin: 0;
}

.card-link .price {
    color: #000;               /* price black */
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

/* Hover: only title changes color */
.card-link:hover .card-title {
    color: #4a90e2;            /* light blue */
}
/* PRICE BOX */
.price-box {
    margin-top: 8px;
    padding: 6px 8px;
    background: #f2f2f2;              /* slightly darker than white */
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    text-align: center;
}

.price-label {
    font-size: 11px;
    color: #555;
    margin-bottom: 2px;
}

.price-value {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}
/* Home layout */
.layout-home {
    display: block;
}

/* Filters centered on home */
.filters-top {
    max-width: 1100px;
    margin: 24px auto;
}
/* Search results layout: sidebar + grid */
.layout-search {
    display: grid;
    grid-template-columns: 260px 1fr; /* sidebar + content */
    gap: 20px;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 12px;
}

/* Stack sidebar above results on small screens */
@media (max-width: 900px) {
    .layout-search {
        grid-template-columns: 1fr;
    }
}

/* Index page filters */
.filters-top .filter-box {
    max-width: 1100px;
    margin: 24px auto;
}

/* Full-width inputs in sidebar */
.filters-sidebar .filter-field,
.filters-sidebar .filter-action {
    grid-column: auto;
	width: 100%;
}

/* =========================
   SIDEBAR ALIGNMENT FIX
   ========================= */

/* Center the entire sidebar content */
.filters-sidebar {
    display: flex;
    justify-content: center;
    align-self: start;
}

/* Constrain sidebar width */
.filters-sidebar .filter-box {
    width: 100%;
    max-width: 220px;   /* adjust if needed */
	position: sticky;
    top: 20px;
}

.filters-sidebar .filter-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.filters-sidebar select,
.filters-sidebar .search-btn {
    width: 100%;
}

/* =========================
   SIDEBAR – MOBILE
   ========================= */
@media (max-width: 900px) {
    .filters-sidebar .filter-box {
        max-width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
		position: static;
    }

    .filters-sidebar .filter-grid {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        grid-template-rows: auto auto;
        gap: 14px;
        align-items: end;
    }

    /* Field placement – identical to home filters */
    .filters-sidebar .filter-field:nth-child(1) { grid-column: 1; grid-row: 1; }
    .filters-sidebar .filter-field:nth-child(2) { grid-column: 2; grid-row: 1; }
    .filters-sidebar .filter-field:nth-child(3) { grid-column: 1; grid-row: 2; }
    .filters-sidebar .filter-field:nth-child(4) { grid-column: 2; grid-row: 2; }

    .filters-sidebar .filter-action {
        grid-column: 3;
        grid-row: 2;
    }	
}
/* =========================
   Product page layout
   ========================= */

.product-layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1.5fr;
    gap: 16px;
    align-items: start;

    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
}
/* =========================
   Product image gallery
   ========================= */

.gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
	position: relative;
	width: 100%;
    max-width: clamp(520px, 70vw, 820px);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid #cfcfcf;
}

/* Thumbnails row */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
	scroll-behavior: smooth;
}

/* Hide scrollbar */
.gallery-thumbs::-webkit-scrollbar {
    display: none;
}
.gallery-thumbs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.thumb-arrow {
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    flex-shrink: 0;
}

.thumb-arrow:hover {
    background: rgba(0,0,0,0.65);
}

.gallery-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumbs img.active {
    border-color: #1a73e8;
}
.product-images {
    width: 100%;
    min-width: 0;     
    justify-self: stretch;
}


/* =========================
   Video embed sizing (YouTube)
   ========================= */

.product-video {
    width: 100%;
    margin-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d0d0d0;
}

.product-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: 0;
    border-radius: 6px;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    z-index: 2;
}

.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

.gallery-arrow:hover {
    background: rgba(0,0,0,0.65);
}


/* =========================
   Price table (left sidebar)
   ========================= */

.price-table {
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
}

.price-table-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.price-row span:first-child {
    color: #333;
}

.price-row span:last-child {
    font-weight: 600;
    text-align: right;
}

.price-divider {
    height: 1px;
    background: #d0d0d0;
    margin: 8px 0;
}

.price-row.subtotal span:last-child {
    font-weight: 700;
}

.price-row.total {
    margin-top: 4px;
}

.price-row.total span:first-child {
    font-weight: 600;
}

.price-row.total span:last-child {
    font-size: 15px;
    font-weight: 800;
}

/* =========================
   Contact box (below price table)
   ========================= */

.contact-box {
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
}

/* Contact email link */
.contact-email {
    color: inherit;
    text-decoration: none;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-box-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-box-details {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Specs table inside the same rounded box */
.specs-box {
    margin-top: 14px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 14px;
}

.specs-table th {
    text-align: left;
    font-weight: 600;
    color: #333;
    padding-right: 12px;
    width: 45%;
}

.specs-table td {
    text-align: right;
    color: #111;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: 0;
}
.price-note {
    margin-top: 8px;
    font-size: 12px;
    color: #b00020; /* red */
    line-height: 1.4;
}
.contact-icons {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.contact-icons a {
    display: inline-flex;	
}

.contact-icons a img {
    width: 28px;
    height: 28px;
    display: block;
}

.contact-icons a:hover {
    opacity: 0.8;
}


/* =========================
   Contacts page – storage facilities
   ========================= */

.storage-facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.storage-facility iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

.storage-card {
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    padding: 16px;
    box-sizing: border-box;
}

.storage-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.storage-card iframe {
    margin-top: 12px;
    border-radius: 8px;
}

/* =========================
   Purchase warning
   ========================= */

.purchase-warning {
    max-width: 720px;
    margin: 10px auto 20px;
    padding: 10px 12px;
    color: #b00020;
    font-weight: 700;
    text-align: center;
}
/* =========================
   How it works – process steps
   ========================= */

.process-steps {
    width: min(70vw, 900px);
    margin: 50px auto;
    text-align: center;
}

.process-step {
    padding: 8px 10px;         /* tighter all around */
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    font-size: 14px;           /* slightly smaller */
    font-weight: 500;
    line-height: 1.25;         /* tight text box */
    box-sizing: border-box;
}

.process-arrow {
    font-size: 24px;
    margin: 10px 0;
    color: #333;
}
/* How it works – step description */

.step-description {
    max-width: 720px;
    margin: 0px auto 0px;
    line-height: 1.2;
	padding-bottom: 5px;
}

/* Clear floated illustration so tab wraps correctly */
.step-description::after {
    content: "";
    display: block;
    clear: both;
}

.step-description h3 {
    margin-bottom: 2px;
    font-size: 20px;
    font-weight: 600;
}

.step-description p {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
}

.step-description ul {
    margin: 10px 0 10px 10px;
}

.step-description li {
    margin-bottom: 6px;
}
/* =========================================================
   MOBILE & RESPONSIVE LAYOUT FIXES
   ========================================================= */

/* ---------- Top menu & info bar (mobile usability) ---------- */
@media (max-width: 768px) {


    .top-bar-inner {
        padding: 0 16px;
    }

    .menu-inner {
        padding: 0 16px;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        justify-content: center;
    }

    .brand-logo {
        font-size: 24px;
    }

    .info-bar {
        font-size: 14px;
        height: 28px;
        padding: 0 10px;
        box-sizing: border-box;
        text-align: center;
    }
    .storage-facilities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
/* =========================
   PRODUCT PAGE – MOBILE LAYOUT (STABLE)
   ========================= */
@media (max-width: 900px) {

    /* 1. One-column layout */
    .product-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px;
    }

    /* 2. Order ONLY direct children */
    .product-images {
        order: 1;
    }

    .product-video {
        order: 2;
    }

    .product-specs {
        order: 3;
    }

    .product-pricing {
        order: 4;
    }
}
/* === How it works – step illustration (aligned under title) === */
.step-description > .step-illustration {
    float: left;
    max-width: 220px;
    margin: 6px 16px 12px 0;
}

/* Ensure text aligns with top of illustration */
.step-description > p,
.step-description > ul {
    overflow: hidden;
}

.step-illustration img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #cfcfcf;
}

/* Mobile: stack image above text */
@media (max-width: 768px) {
    .step-description > .step-illustration {
        float: none;
        max-width: 100%;
        margin: 0 0 14px 0;
    }
}
 /* =========================
    Pagination
    ========================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    background: #355C7D;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.pagination a:hover {
    background: #1558b0;
}

.pagination .active {
    background: #0F172A;
    pointer-events: none;
}

/* Reusable button link (used for Back to list) */
.btn-link {
    display: inline-block;
    padding: 8px 14px;
    background: #355C7D;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.btn-link:hover {
    background: #1558b0;
}