/* Alps Products catalog + slide-in side panel.
   Set --alps-accent / --alps-red to match the Alps brand. */


.alps-products {
    --alps-accent: #0b5cab;
    --alps-red:    #c8102e;   /* red used on the panel bar + doc buttons */
    --alps-dark:   #4a4a4a;   /* footer CTA bar */
    --alps-border: #e2e2e2;
    --alps-ink:    #1f2933;
}


.alps-products [hidden] {
    display: none !important;
}


/* ---- banner: shared hero above both views, text swaps per category ---- */
.alps-banner {
    position: relative;
    min-height: 260px;
    margin-bottom: 2rem;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.alps-banner::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 55%);
}
.alps-banner__box {
    position: relative; z-index: 1;
    background: rgba(255,255,255,.8);
    padding: 1.75rem 2rem;
    margin-left: 2rem;
    max-width: 650px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.alps-banner__logo {
    flex: 0 0 auto; max-width: 130px; height: auto; display: block;
}
.alps-banner__text { flex: 1 1 auto; min-width: 0; }

.alps-banner__title {
    margin: 0 0 .5rem !important; font-size: 1.4rem !important; font-weight: 600 !important;
    color: var(--alps-ink) !important; text-transform: none !important; line-height: 1.3 !important;
}
.alps-banner__tagline {
    margin: 0 !important; font-size: .95rem !important; color: #4b5563 !important; line-height: 1.5 !important;
}


/* ---- category tiles (landing view) ---- */
.alps-categories-view {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.alps-tile {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: #f4f4f4; border-radius: 4px; padding: 1.75rem; cursor: pointer;
    transition: background .15s ease;
}
.alps-tile:hover { background: #ececec; }
.alps-tile__title {
    margin: 0 0 .5rem; font-size: 20px !important; font-weight: 700; letter-spacing: .02em;
    color: var(--alps-ink); text-transform: uppercase;
}
.alps-tile__desc {
    margin: 0 0 .75rem; font-size: 15px !important; color: #6b7280; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.alps-tile__link { font-size: 14px; font-weight: 600; color: var(--alps-ink); }
.alps-tile__image { flex: 0 0 auto; width: 90px; }
.alps-tile__image img { width: 100%; height: auto; display: block; }


/* ---- catalog view: sidebar + product rows ---- */
.alps-catalog-view { display: flex; gap: 2rem; align-items: flex-start; }
.alps-catalog-sidebar {
    flex: 0 0 220px;
    background: #f4f4f4;
    padding: 20px;
    margin-top: 20px;
}
.alps-catalog-back {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #616161;
    margin: 0;
    padding: 0 0 20px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.alps-catalog-back:hover {
    color: #555;
}

.alps-catalog-nav { list-style: none; margin: 0px !important; padding: 0 !important; }
.alps-catalog-nav__item {
    position: relative;
    padding: 14px 18px;
    margin-bottom: 0px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #666;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
}

.alps-catalog-nav__item:hover {
    background: #fff;
    color: #333;
}

.alps-catalog-nav__item.is-active {
    background: #fff;
    border-left: 4px solid var(--alps-red);
    color: #333;
    font-weight: 500;
    padding-left: 25px !important;
}
.alps-catalog-main { flex: 1 1 auto; min-width: 0; }


.alps-rows { display: flex; flex-direction: column; }
.alps-row {
    display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem 0;
    border-bottom: 1px solid var(--alps-border); cursor: pointer;
}
.alps-row.alps-hidden { display: none; }
.alps-row__image { flex: 0 0 auto; width: 90px; }
.alps-row__image img { width: 100%; height: auto; display: block; }
.alps-row__body { flex: 1 1 auto; min-width: 0; }
.alps-row__title { margin: 0 0 .35rem; font-size: 1rem !important; line-height: 1.3rem !important; font-weight: 700; color: var(--alps-ink);  }
.alps-row__desc { margin: 0; font-size: 15px !important; color: #4b5563; line-height: 1.5; }
.alps-row__specs {
	flex: 0 0 auto; width: 220px; list-style: none !important; margin: 0px !important;
	padding: 15px 0 15px 30px !important; background: #f4f4f4; border-radius: 4px;
}
.alps-row__specs li { font-size: .85rem; color: var(--alps-ink); padding: .2rem 0; }


.alps-show-all {
    display: block; width: 100%; margin-top: .5rem; background: #f4f4f4 !important;
    border: 0 !important; padding: 1rem !important; font-size: .9rem !important;
    font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: .04em;
    color: var(--alps-ink) !important; cursor: pointer;
}
.alps-show-all:hover { background: #ececec !important; }


/* ---- backdrop ---- */
.alps-panel-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 99998;
}
.alps-panel-backdrop.is-open { opacity: 1; visibility: visible; }


/* ---- side panel ---- */
.alps-panel {
    position: fixed; top: 0; bottom: 0; width: 560px; max-width: 92vw;
    background: #fff; z-index: 99999; display: flex; flex-direction: column;
    transition: transform .3s ease;
}
.alps-panel--right { right: 0; transform: translateX(100%); box-shadow: -10px 0 40px rgba(0,0,0,.25); }
.alps-panel--left  { left: 0;  transform: translateX(-100%); box-shadow: 10px 0 40px rgba(0,0,0,.25); }
.alps-panel.is-open { transform: translateX(0); }


.alps-panel__bar { height: 5px; background: var(--alps-red); flex: 0 0 auto; }
.alps-panel__close {
    position: absolute; top: 14px; right: 16px; width: 34px !important; height: 34px !important;
    min-width: 0 !important; border-radius: 50% !important; border: 1px solid #ccc !important;
    background: #fff !important; color: #555 !important; font-size: 1.3rem !important; line-height: 1 !important;
    cursor: pointer; z-index: 2; padding: 0 !important; margin: 0 !important; text-transform: none !important;
}
.alps-panel__body { flex: 1 1 auto; overflow-y: auto; padding: 2rem 1.75rem 1.5rem; }


/* ---- product view ---- */
.alps-panel [hidden] { display: none !important; }
.alps-panel h1, .alps-panel h2, .alps-panel h3 { text-transform: none !important; letter-spacing: normal !important; }
.alps-view__title {
    margin: 0 0 1rem; font-size: 1.35rem !important; font-weight: 600 !important;
    color: var(--alps-ink) !important; padding-right: 2.5rem; line-height: 1.3 !important;
}
.alps-view--product .alps-view__title { text-align: center; }
.alps-view__intro { border-bottom: 1px solid var(--alps-border); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.alps-view__intro::after { content: ""; display: table; clear: both; }
.alps-view__image { float: left; width: 140px; height: auto; margin: 0 1rem .5rem 0; }
.alps-view__model { margin: 0 0 .5rem; font-size: 1rem !important; font-weight: 400 !important; }
.alps-view__desc { font-size: 15px ; line-height: 1.5 !important; font-weight: 400 !important; }
.alps-view__desc p { margin: 0 0 .75rem; font-size: 15px !important;}


/* specs — reset against theme list styles (bullets, chevrons, indents) */
.alps-specs {
    list-style: none !important; margin: 1.25rem 0 !important; padding: 1rem !important;
    background: #f4f4f4; border-radius: 4px;
}
.alps-specs li.alps-spec {
    list-style: none !important; margin: 0 !important; padding: .35rem 0 !important;
}
.alps-spec::before, .alps-specs li::before { content: none !important; display: none !important; }
.alps-spec { position: relative; display: flex; align-items: center; font-size: .95rem !important; color: var(--alps-ink) !important; }
.alps-spec__icon {
    flex: 0 0 auto; margin-right: .6rem; color: var(--alps-red);
    display: inline-flex !important; align-items: center;
}
.alps-spec__icon svg { display: block; width: 16px; height: 16px; }
.alps-spec__text { flex: 1 1 auto; }
.alps-spec__help {
    flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #bbb;
    background: #fff; color: #777; font-size: .75rem; line-height: 1; cursor: pointer; padding: 0;
}
.alps-spec__tip {
    position: absolute; right: 0; top: 100%; z-index: 3; margin-top: 4px;
    background: #333; color: #fff; font-size: .8rem; line-height: 1.35; padding: .5rem .65rem;
    border-radius: 4px; max-width: 260px; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}


/* brochure / manual buttons */
.alps-docs { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.alps-docs--two { flex-direction: row; }
.alps-doc-btn {
    flex: 1 1 auto; text-align: center; background: var(--alps-red) !important; color: #fff !important;
    text-decoration: none !important; padding: .8rem 1rem !important; border-radius: 3px !important;
    font-weight: 600 !important; text-transform: uppercase !important; font-size: .85rem !important;
    letter-spacing: .02em; border: 0 !important; margin: 0 !important; display: block; box-sizing: border-box;
}
.alps-doc-btn:hover { filter: brightness(.92); color: #fff !important; }


/* ---- contact view ---- */
.alps-view__product { color: var(--alps-red); font-weight: 600; margin: 0 0 1.25rem; }
.alps-form { font-size: .95rem; }
.alps-form p { margin: 0 0 1rem; }
.alps-form fieldset {
    border: 1px solid var(--alps-border) !important; border-radius: 4px; margin: 0 0 1.5rem !important;
    padding: 1.5rem 1.25rem 1rem !important;
}
.alps-form legend {
    padding: 0 .5rem !important; margin-left: -.5rem; background: #fff;
    font-weight: 600 !important; font-size: .95rem; color: var(--alps-ink) !important; width: auto !important;
}
.alps-form label { display: block; margin: 0 0 1rem; font-size: .9rem; color: var(--alps-ink); }
.alps-form .wpcf7-form-control-wrap { display: block; margin-top: .35rem; }
.alps-form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.alps-form select,
.alps-form textarea {
    width: 100% !important; box-sizing: border-box; border: 1px solid var(--alps-border) !important;
    border-radius: 3px !important; padding: .65rem .75rem !important; font-size: .9rem !important;
    background: #fff !important; color: var(--alps-ink) !important; margin: 0 !important;
}
.alps-form textarea { min-height: 90px; resize: vertical; }
/* keep the native arrow but make selects look consistent across browsers */
.alps-form select {
    -webkit-appearance: menulist; -moz-appearance: menulist; appearance: menulist;
    cursor: pointer;
}
.alps-form input:focus, .alps-form select:focus, .alps-form textarea:focus {
    outline: none; border-color: var(--alps-accent) !important;
}
.alps-form input[type=submit] {
    display: block; width: 100% !important; background: var(--alps-red) !important; color: #fff !important;
    border: 0 !important; border-radius: 3px !important; padding: 1rem !important; margin: 0 !important;
    font-size: .95rem !important; font-weight: 700 !important; text-transform: uppercase !important;
    letter-spacing: .03em; cursor: pointer;
}
.alps-form input[type=submit]:hover { filter: brightness(.92); }
.alps-form .wpcf7-not-valid-tip { font-size: .8rem; margin-top: .25rem; }
.alps-form .wpcf7-response-output { border-radius: 3px; font-size: .9rem; }


/* custom dropdown — replaces the native <select> click target */
.alps-select { position: relative; }
.alps-select__native {
    position: absolute !important; width: 1px !important; height: 1px !important;
    opacity: 0 !important; overflow: hidden !important; pointer-events: none !important;
    top: 0 !important; left: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
    z-index: -1 !important; clip: rect(0,0,0,0) !important;
}
.alps-select__trigger {
    width: 100% !important; text-align: left !important; background: #fff !important;
    border: 1px solid var(--alps-border) !important; border-radius: 3px !important;
    padding: .65rem 2rem .65rem .75rem !important; font-size: .9rem !important;
    font-weight: 400 !important; text-transform: none !important; letter-spacing: normal !important;
    color: var(--alps-ink) !important; cursor: pointer; position: relative; display: block;
    min-height: 2.6rem; box-sizing: border-box; margin: 0 !important; line-height: 1.4 !important;
}
.alps-select__trigger::after {
    content: ""; position: absolute; right: .95rem; top: 50%; width: 7px; height: 7px;
    border-right: 2px solid #777; border-bottom: 2px solid #777;
    transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.alps-select__trigger.is-open::after { transform: translateY(-35%) rotate(-135deg); }
.alps-select__menu {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
    background: #fff; border: 1px solid var(--alps-border); border-radius: 3px; margin: 0 !important;
    padding: .25rem 0 !important; max-height: 220px; overflow-y: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,.15); list-style: none !important;
}
.alps-select__menu.is-open { display: block; }
.alps-select__option {
    padding: .55rem .9rem !important; font-size: .9rem; cursor: pointer;
    list-style: none !important; margin: 0 !important;
}
.alps-select__option::before { content: none !important; }
.alps-select__option:hover { background: #f4f4f4; }


.alps-form .select2-container,
.alps-form select.select2-hidden-accessible {
    display: none !important;
}


/* ---- footer CTA bar ---- */
.alps-panel__footer { flex: 0 0 auto; }
.alps-panel__cta {
    display: block; width: 100% !important; border: 0 !important; cursor: pointer; box-sizing: border-box;
    background: var(--alps-dark) !important; color: #fff !important; padding: 1.1rem 1rem !important;
    font-size: 1rem !important; font-weight: 600 !important; text-transform: uppercase !important;
    letter-spacing: .02em; margin: 0 !important; border-radius: 0 !important; text-align: center;
}
.alps-panel__cta[hidden] { display: none !important; }
.alps-panel__cta:hover { filter: brightness(1.08); color: #fff !important; }
.alps-panel__cta-icon { margin-right: .4rem; }


body.alps-panel-open { overflow: hidden; }


/* ---- mobile: panel fills the screen ---- */
@media screen and (max-width: 39.9375em) {
    .alps-banner { min-height: 200px; }
    .alps-banner__box { margin-left: 1rem; max-width: calc(100% - 3rem); padding: 1.25rem 1.5rem; }
    .alps-categories-view { grid-template-columns: 1fr; }
    .alps-catalog-view { flex-direction: column; }
    .alps-catalog-sidebar { flex: 0 0 auto; width: 100%; }
    .alps-row__specs { display: none; }
    .alps-panel { width: 100%; max-width: 100%; }
    .alps-view__image { float: none; display: block; margin: 0 auto 1rem; }
    .alps-docs--two { flex-direction: column; }
}