/* MONTREX INC. — additions on top of the SmartHome theme (style.css) */
:root {
  --dark-bg: #0a192f;
  --card-bg: rgba(17, 34, 64, 0.85);
}
[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; }
body { padding-top: 0; }
img { max-width: 100%; }

/* Brand */
.navbar-brand { gap: 10px; font-size: 1.45rem; color: #fff; }
.navbar-brand img { width: 38px; height: 38px; border-radius: 9px; }
.navbar-brand:hover { color: #fff; }
.navbar .container { flex-wrap: wrap; }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.navbar-toggler { background: transparent; }
@media (min-width: 992px) {
  .navbar-collapse { order: 1; }
  .navbar-actions { order: 2; margin-left: 12px; }
}
@media (max-width: 991px) {
  .navbar-actions { margin-left: auto; order: 1; }
  .navbar-collapse { order: 2; }
}

/* Header cart (Livewire) */
.header-cart { position: relative; }
.header-cart-toggle {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--electric-cyan); background: transparent;
  color: var(--electric-cyan); font-size: 1rem; transition: .3s; cursor: pointer;
}
.header-cart-toggle:hover { background: rgba(0, 217, 255, .15); }
.header-cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--electric-cyan); color: var(--navy);
  font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center;
}
.header-cart-dropdown {
  position: absolute; right: 0; top: calc(100% + 14px); width: 360px; z-index: 1100;
  background: var(--deep-blue); border: 1px solid rgba(0, 217, 255, .25);
  border-radius: 14px; box-shadow: 0 15px 40px rgba(0, 0, 0, .5); overflow: hidden;
}
.header-cart-head { display: flex; justify-content: space-between; padding: 14px 18px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-cart-count { color: var(--gray); font-weight: 400; font-size: .9rem; }
.header-cart-list { max-height: 320px; overflow-y: auto; }
.header-cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.05); }
.header-cart-item img, .order-line img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.header-cart-info { flex: 1; min-width: 0; }
.header-cart-name { display: block; color: var(--white); font-size: .88rem; line-height: 1.3; text-decoration: none; }
.header-cart-name:hover { color: var(--electric-cyan); }
.header-cart-price { color: var(--electric-cyan); font-size: .85rem; font-weight: 600; }
.header-cart-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.header-cart-qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,217,255,.4); background: transparent; color: var(--electric-cyan); line-height: 1; cursor: pointer; }
.header-cart-qty button:hover { background: var(--electric-cyan); color: var(--navy); }
.header-cart-remove { background: none; border: 0; color: var(--gray); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.header-cart-remove:hover { color: #ff6b6b; }
.header-cart-empty { padding: 34px 18px; text-align: center; color: var(--gray); }
.header-cart-empty .fa-shopping-cart { font-size: 2rem; margin-bottom: 8px; display: block; opacity: .5; }
.header-cart-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.header-cart-total { display: flex; justify-content: space-between; margin-bottom: 12px; }
.header-cart-foot .btn { width: 100%; text-align: center; }
@media (max-width: 991px) {
  .header-cart { position: static; }
  .header-cart-dropdown { position: fixed; left: 12px; right: 12px; top: 72px; width: auto; }
}

/* Page hero for inner pages */
.page-hero {
  position: relative; overflow: hidden; padding: 140px 0 70px;
  background: linear-gradient(135deg, var(--navy) 0, var(--deep-blue) 100%);
  border-bottom: 1px solid rgba(0, 217, 255, .1);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 1rem; }
.page-hero h1 span { color: var(--electric-cyan); }
.page-hero p { color: var(--gray); font-size: 1.1rem; max-width: 640px; margin: 0; }
.page-hero.text-center p { margin: 0 auto; }
section.block { padding: 80px 0; }
@media (max-width: 767px) {
  .page-hero { padding: 110px 0 50px; }
  .page-hero h1 { font-size: 2.1rem; }
  section.block { padding: 55px 0; }
  .hero-title { font-size: 2.4rem; }
}
#hero { min-height: auto; padding: 130px 0 90px; }
#homeimg { aspect-ratio: 4 / 3; object-fit: cover; }

/* Brand pieces */
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-logo img { width: 36px; height: 36px; border-radius: 8px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--gray); }
.footer-contact i { color: var(--electric-cyan); margin-top: 5px; width: 16px; }
.footer-contact a { color: var(--gray); text-decoration: none; }
.footer-contact a:hover { color: var(--electric-cyan); }
.category-tile { display: block; text-decoration: none; color: inherit; }
.category-tile .service-card { padding: 22px; text-align: center; }
.category-tile .service-icon { margin-bottom: 12px; }
.category-tile h5 { margin: 0; font-size: 1.05rem; color: #fff; }

/* Product cards */
.catalog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.catalog-filter a {
  padding: 8px 18px; border-radius: 20px; border: 1px solid rgba(0, 217, 255, .3);
  color: var(--white); text-decoration: none; font-weight: 500; transition: .3s;
}
.catalog-filter a:hover, .catalog-filter a.active { background: var(--electric-cyan); color: var(--navy); border-color: var(--electric-cyan); }
.product-card { height: 100%; display: flex; flex-direction: column; border: 1px solid rgba(0, 217, 255, .1); background: var(--card-bg); }
.product-card .product-image { height: auto; aspect-ratio: 4 / 3; padding: 0; background: #112240; }
.product-card .product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .product-info { display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--electric-cyan); margin-bottom: 6px; }
.product-card h5 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; min-height: 2.8em; }
.product-desc { color: var(--gray); font-size: .9rem; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-price { font-size: 1.2rem; font-weight: 700; color: #fff; }
.btn-sm-custom { padding: 8px 18px; font-size: .9rem; }

/* Service cards */
.service-item { background: var(--card-bg); border: 1px solid rgba(0, 217, 255, .1); border-radius: 15px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: .4s; }
.service-item:hover { transform: translateY(-8px); border-color: var(--electric-cyan); box-shadow: 0 10px 30px rgba(0, 217, 255, .2); }
.service-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.service-item .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-item h4 { font-size: 1.2rem; margin-bottom: 10px; }
.service-item p { color: var(--gray); font-size: .95rem; }
.service-item ul { list-style: none; padding: 0; margin: 0 0 18px; }
.service-item li { padding: 4px 0; font-size: .9rem; }
.service-item li i { color: var(--electric-cyan); margin-right: 8px; }
.service-item .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.service-from { color: var(--gray); font-size: .9rem; }
.service-from strong { color: var(--electric-cyan); font-size: 1.1rem; }

/* Pagination */
.pagination { justify-content: center; gap: 6px; margin-top: 50px; flex-wrap: wrap; }
.pagination .page-link { background: var(--card-bg); border: 1px solid rgba(0, 217, 255, .25); color: var(--white); border-radius: 8px !important; }
.pagination .page-link:hover { background: rgba(0, 217, 255, .15); color: var(--electric-cyan); }
.pagination .active .page-link { background: var(--electric-cyan); border-color: var(--electric-cyan); color: var(--navy); }
.pagination .disabled .page-link { opacity: .4; background: transparent; }
nav[aria-label="Pagination Navigation"] > div:first-child { display: none; }
nav[aria-label="Pagination Navigation"] p.small { text-align: center; color: var(--gray); margin-top: 16px; }

/* Forms */
.contact-form label, .modal label { color: var(--gray); font-size: .9rem; margin-bottom: 6px; display: block; }
.contact-form .form-control, .modal .form-control { color: var(--white); }
.contact-form textarea.form-control, .modal textarea.form-control { resize: vertical; }
.form-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.form-alert.ok { background: rgba(100, 255, 218, .12); border: 1px solid var(--light-cyan); color: var(--light-cyan); }
.form-alert.err { background: rgba(255, 107, 107, .12); border: 1px solid #ff6b6b; color: #ff9b9b; }
.field-error { color: #ff9b9b; font-size: .82rem; display: block; margin-top: -14px; margin-bottom: 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map-frame { border-radius: 15px; overflow: hidden; border: 1px solid rgba(0, 217, 255, .15); margin-top: 40px; }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; filter: grayscale(1) contrast(1.1) opacity(.85); }

/* Modal (dark theme) */
.modal-content { background: var(--deep-blue); border: 1px solid rgba(0, 217, 255, .3); border-radius: 16px; color: var(--white); }
.modal-header, .modal-footer { border-color: rgba(255, 255, 255, .08); }
.modal-title { font-weight: 700; }
.modal .btn-close { filter: invert(1) grayscale(1); opacity: .7; }
.modal-subject { color: var(--electric-cyan); font-weight: 600; margin-bottom: 18px; }

/* Checkout */
.checkout h3 { margin-bottom: 24px; font-size: 1.5rem; }
.order-summary { background: var(--card-bg); border: 1px solid rgba(0, 217, 255, .15); border-radius: 15px; padding: 28px; }
.order-line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.order-line img { width: 72px; height: 54px; }
.order-line-info { flex: 1; min-width: 0; }
.order-line-name { font-weight: 600; font-size: .95rem; }
.order-line-price { color: var(--electric-cyan); font-size: .85rem; }
.order-line-sum { text-align: right; font-weight: 600; white-space: nowrap; }
.order-line-remove { display: block; margin: 4px 0 0 auto; background: none; border: 0; color: var(--gray); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.order-line-remove:hover { color: #ff6b6b; }
.order-total { display: flex; justify-content: space-between; font-size: 1.3rem; padding-top: 18px; }
.order-total strong { color: var(--electric-cyan); }
.order-note { color: var(--gray); font-size: .85rem; margin: 14px 0 0; }
.order-empty { text-align: center; color: var(--gray); padding: 20px 0; }
.checkout-alert { background: rgba(255, 107, 107, .12); border: 1px solid #ff6b6b; color: #ff9b9b; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.checkout-done { padding: 60px 20px; background: var(--card-bg); border-radius: 15px; border: 1px solid rgba(0, 217, 255, .15); }
.checkout-done-icon { font-size: 4rem; color: var(--light-cyan); margin-bottom: 16px; display: block; }
.has-error .form-control { border-color: #ff6b6b; }

/* Toast */
.cart-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); z-index: 2000;
  background: var(--electric-cyan); color: var(--navy); font-weight: 600; padding: 12px 24px;
  border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: .3s;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Contacts */
.contact-card { background: var(--card-bg); border: 1px solid rgba(0, 217, 255, .1); border-radius: 15px; padding: 28px; height: 100%; }
.contact-info-item p a { color: var(--gray); text-decoration: none; }
.contact-info-item p a:hover { color: var(--electric-cyan); }
.contact-info-item h5 { color: #fff; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; color: var(--electric-cyan); margin-right: 15px; }
.contact-info-item p { color: var(--gray); margin: 0; }

/* Cookie notice */
.cookie-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; z-index: 1900; padding: 18px 20px; border-radius: 14px; background: rgba(17, 34, 64, .96); border: 1px solid rgba(0, 217, 255, .3); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.cookie-consent p { margin: 0 0 12px; font-size: .9rem; color: var(--gray); }
.cookie-consent a { color: var(--electric-cyan); }

/* Privacy page spacing */
.privacy-hero { padding-top: 140px; }
