/* Project-specific additions on top of the ITGen theme */
[x-cloak] { display: none !important; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.header-top a { color: inherit; }
.ht-left-sec span { margin-right: 24px; }

/* ---------- header actions + cart ---------- */
.h-right-button { display: flex; align-items: center; gap: 16px; }
.cart-widget { position: relative; }
.cart-trigger {
    position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .14); color: var(--white-color); font-size: 18px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .2s, color .2s;
}
.header-color .cart-trigger, .sticky .cart-trigger { background: var(--section-bg); color: var(--headding-color); }
.cart-trigger:hover { background: var(--primary-color); color: var(--white-color); }
.cart-badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 10px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.cart-panel {
    position: absolute; right: 0; top: calc(100% + 14px); width: 360px; max-width: calc(100vw - 32px);
    background: #fff; color: var(--body-color); border-radius: 8px; box-shadow: 0 18px 50px rgba(1, 7, 66, .25);
    z-index: 1000; max-height: 80vh; overflow-y: auto; text-align: left;
}
.cart-panel-head { display: flex; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--ct-border-color); }
.cart-panel-title { font-family: var(--headding-font); font-weight: 700; color: var(--headding-color); font-size: 18px; }
.cart-panel-count { font-size: 14px; }
.cart-line { position: relative; display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ct-border-color); }
.cart-line-img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; }
.cart-line-body { flex: 1; min-width: 0; padding-right: 18px; }
.cart-line-title { font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--headding-color); margin-bottom: 6px; }
.cart-line-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-line-price { font-weight: 700; color: var(--primary-color); font-size: 14px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--ct-border-color); border-radius: 4px; }
.cart-qty button { width: 26px; height: 26px; border: 0; background: transparent; color: var(--headding-color); cursor: pointer; line-height: 1; }
.cart-qty button:hover { background: var(--section-bg); }
.cart-qty span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-line-remove { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; color: #8a93a0; font-size: 12px; cursor: pointer; }
.cart-line-remove:hover { color: #e5484d; }
.cart-empty { padding: 28px 18px; text-align: center; }
.cart-empty-icon { font-size: 34px; color: var(--primary-color); margin-bottom: 10px; }
.cart-panel-foot { padding: 16px 18px; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 17px; color: var(--headding-color); }
.cart-panel .button-2 { display: inline-block; }

/* ---------- buttons ---------- */
.button-1.button-outline { background: transparent; border: 2px solid rgba(255, 255, 255, .6); padding: 14px 28px; margin-left: 12px; }
.button-1.button-outline:hover { border-color: var(--primary-color); }
.ct-hero-section .h-button { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ct-hero-section .h-button .button-outline { margin-left: 0; }
.ct-hero-section .image img { width: 100%; height: auto; }
.single-input input.is-invalid, .single-input textarea.is-invalid { border-color: #e5484d; }

/* ---------- services ---------- */
.service-trigger { cursor: pointer; height: 100%; }
.service-trigger:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 3px; }
.services-card-item.style-6 .service-price { margin: 12px 0 0; font-size: 15px; }
.services-card-item.style-6 .read-more-link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--primary-color); }
.services-card-item.style-6:hover .read-more-link, .services-card-item.style-6:hover .service-price strong { color: #fff; }
.services-card-item.style-6 .icon img { width: 64px; height: 64px; object-fit: contain; }
.catalog-note { text-align: center; margin-top: 10px; }

/* ---------- catalog ---------- */
.catalog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.catalog-filter {
    padding: 9px 20px; border-radius: 30px; border: 1px solid var(--ct-border-color); background: #fff;
    color: var(--headding-color); font-weight: 600; font-size: 15px; transition: all .2s;
}
.catalog-filter:hover, .catalog-filter.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.product-card {
    display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--ct-border-color);
    border-radius: 8px; overflow: hidden; transition: box-shadow .25s, transform .25s;
}
.product-card:hover { box-shadow: 0 14px 40px rgba(1, 7, 66, .12); transform: translateY(-4px); }
.product-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--section-bg); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card-category {
    position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 4px;
    background: rgba(1, 7, 66, .82); color: #fff; font-size: 12px; font-weight: 600;
}
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.product-card-title { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.product-card-text { font-size: 14px; line-height: 1.55; margin-bottom: 16px; flex: 1; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-card-price { font-family: var(--headding-font); font-size: 21px; font-weight: 700; color: var(--headding-color); }
.product-card .button-2 { padding: 10px 16px; font-size: 14px; }
.product-card .button-2.is-added { background: #1a9d5a; }
.blog-pagination { margin-top: 20px; }
.blog-pagination .nav-links ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }

/* ---------- checkout ---------- */
.checkout-heading { font-size: 26px; margin-bottom: 20px; }
.checkout .single-input input.is-invalid { border-color: #e5484d; }
.field-error { color: #e5484d; font-size: 14px; margin-top: 4px; }
.checkout-summary { background: var(--section-bg); border-radius: 8px; padding: 26px; }
.checkout-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ct-border-color); }
.checkout-line img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; }
.checkout-line-title { font-weight: 600; font-size: 15px; color: var(--headding-color); line-height: 1.3; }
.checkout-line-price { text-align: right; font-weight: 700; color: var(--primary-color); font-size: 15px; }
.checkout-line-remove { position: static; display: block; margin: 6px 0 0 auto; }
.checkout-total { display: flex; justify-content: space-between; padding-top: 18px; font-size: 20px; color: var(--headding-color); }
.checkout-note { font-size: 14px; margin-top: 14px; margin-bottom: 0; }
.checkout-done { max-width: 560px; margin: 0 auto; padding: 30px 0; }
.checkout-done-icon { font-size: 64px; color: #1a9d5a; margin-bottom: 16px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.is-success, .fb-modal-output.is-success { color: #1a9d5a; }
.form-status.is-error, .fb-modal-output.is-error { color: #e5484d; }

/* ---------- contacts ---------- */
.ct-contact-list a { color: inherit; }
.contact-map { margin-top: 30px; border-radius: 8px; overflow: hidden; line-height: 0; }
.contact-map iframe { width: 100%; height: 380px; border: 0; }

/* ---------- mobile menu extras ---------- */
.mobile-contact { padding: 20px 0 0; font-size: 15px; }
.mobile-contact p { margin-bottom: 8px; }
.mobile-contact .button-1 { margin-top: 10px; }
.offcanvas_main_menu li a { display: block; }
.menu ul li.current-menu-item > a { color: var(--primary-color); }
.header-blue-theme .menu ul li.current-menu-item > a { color: #fff; text-decoration: underline; }
.header-blue-theme.sticky .menu ul li.current-menu-item > a { color: var(--primary-color); text-decoration: none; }

/* ---------- feedback modal ---------- */
html.fb-modal-open { overflow: hidden; }
.fb-modal { border: 0; border-radius: 10px; padding: 0; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 80px rgba(1, 7, 66, .4); overflow-y: auto; }
.fb-modal::backdrop { background: rgba(1, 7, 66, .65); }
.fb-modal-form { position: relative; padding: 34px 30px 30px; }
.fb-modal-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--section-bg); color: var(--headding-color); cursor: pointer; }
.fb-modal-close:hover { background: var(--primary-color); color: #fff; }
.fb-modal-title { font-size: 26px; margin-bottom: 8px; }
.fb-modal-subject { display: inline-block; padding: 4px 12px; border-radius: 4px; background: var(--section-bg); color: var(--primary-color); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.fb-modal-text { font-size: 15px; margin-bottom: 18px; }
.fb-optional { font-weight: 400; opacity: .7; font-size: 13px; }
.fb-modal-output { min-height: 22px; margin-bottom: 10px; font-weight: 600; font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .h-right-button { padding: 0; height: 50px; align-items: center; }
    .canvas_open_full { margin-right: 14px; height: 50px; align-items: center; }
    .canvas_open_full a { padding-top: 0; }
    .h-right-button .button-1 { padding: 12px 22px; }
    .cart-trigger { width: 40px; height: 40px; font-size: 16px; }
}
@media (max-width: 575px) {
    .cart-panel { position: fixed; left: 16px; right: 16px; top: 70px; width: auto; max-width: none; }
    .checkout-line { grid-template-columns: 56px 1fr auto; }
    .checkout-line img { width: 56px; height: 42px; }
    .contact-map iframe { height: 300px; }
    .header-top { padding: 8px 0; }
    .ht-left-sec { display: flex; flex-wrap: wrap; gap: 2px 14px; }
    .ht-left-sec span { margin-right: 0; font-size: 13px; line-height: 1.5; }
    .ht-left-sec span:first-child { flex: 0 0 100%; }
    .ht-left-sec span i { margin-right: 4px; }
}
.site-footer .contact-info a { color: inherit; }
.site-footer .contact-info a:hover { color: var(--white-color); text-decoration: underline; }
.copy-text a { color: inherit; text-decoration: underline; }
