/*
 * PCGear – merto-child custom overrides
 * ─────────────────────────────────────
 * Styles for the single-row header and footer.
 */

/* ── Single-row header ─────────────────────────────────────────────────── */

.ts-header.pcgear-header-single .header-middle {
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

/* Main flex row — 64px tall, snug but comfortable */
.ts-header.pcgear-header-single .header-middle .container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Logo — fixed width, don't shrink */
.ts-header.pcgear-header-single .logo-wrapper {
    flex-shrink: 0;
    max-width: 110px;
}
.ts-header.pcgear-header-single .logo-wrapper img {
    max-height: 36px;
    width: auto;
}

/* Nav — sits right after logo, compact items */
.pcgear-nav-inline {
    flex: 0 0 auto;
}
.pcgear-nav-inline .main-menu {
    margin: 0;
    padding: 0;
}
.pcgear-nav-inline nav.main-menu > ul {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pcgear-nav-inline nav.main-menu > ul > li > a {
    padding: 0 11px;
    line-height: 64px;
    display: block;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    color: #222;
    transition: color 0.15s;
}
.pcgear-nav-inline nav.main-menu > ul > li > a:hover {
    color: #de1010;
}

/* Search — grows to fill all remaining space */
.ts-header.pcgear-header-single .header-center {
    flex: 1 1 auto;
    min-width: 160px;
}
.ts-header.pcgear-header-single .header-center .ts-search-form,
.ts-header.pcgear-header-single .header-center form {
    width: 100%;
}
/* Compact search input height */
.ts-header.pcgear-header-single .header-center input[type="text"],
.ts-header.pcgear-header-single .header-center input[type="search"] {
    height: 38px;
    font-size: 13px;
    padding: 0 12px;
}
.ts-header.pcgear-header-single .header-center .search-button,
.ts-header.pcgear-header-single .header-center button[type="submit"] {
    height: 38px;
    min-width: 38px;
    padding: 0 12px;
}

/* Right icon group */
.ts-header.pcgear-header-single .header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
/* Make each icon hit-area at least 40×40 for touch usability */
.ts-header.pcgear-header-single .header-right .my-account-wrapper > a,
.ts-header.pcgear-header-single .header-right .my-wishlist-wrapper > a,
.ts-header.pcgear-header-single .header-right .shopping-cart-wrapper > a,
.ts-header.pcgear-header-single .header-right .my-account-wrapper > span,
.ts-header.pcgear-header-single .header-right .shopping-cart-wrapper > span {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 4px;
    transition: background 0.15s;
}
.ts-header.pcgear-header-single .header-right .my-account-wrapper > a:hover,
.ts-header.pcgear-header-single .header-right .my-wishlist-wrapper > a:hover,
.ts-header.pcgear-header-single .header-right .shopping-cart-wrapper > a:hover {
    background: #f5f5f5;
}

/* Cart count badge — keep it visible */
.ts-header.pcgear-header-single .header-right .cart-count {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Remove the empty header-bottom row */
.ts-header.pcgear-header-single .header-bottom {
    display: none !important;
}

/* Sticky: slightly shorter on scroll */
.ts-header.pcgear-header-single.sticky-active .header-middle .container,
.ts-header.pcgear-header-single .header-sticky.sticky-fixed .header-middle .container {
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.ts-header.pcgear-header-single.sticky-active .pcgear-nav-inline nav.main-menu > ul > li > a,
.ts-header.pcgear-header-single .header-sticky.sticky-fixed .pcgear-nav-inline nav.main-menu > ul > li > a {
    line-height: 56px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.footer-container {
    background-color: #1b1f22;
    color: #999;
    font-size: 14px;
    line-height: 1.7;
}

.pcgear-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 1024px) {
    .pcgear-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .pcgear-footer-inner {
        grid-template-columns: 1fr;
    }
}

.pcgear-footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

.pcgear-footer-col p {
    margin: 0 0 12px;
    color: #999;
}

.pcgear-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pcgear-footer-col ul li {
    margin-bottom: 8px;
}

.pcgear-footer-col ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.pcgear-footer-col ul li a:hover {
    color: #de1010;
}

.pcgear-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.pcgear-footer-bottom a {
    color: #666;
    text-decoration: none;
}

.pcgear-footer-bottom a:hover {
    color: #de1010;
}
