/* Custom overrides for WESTVERA LTD — Solar Panel Retail */

/* Header phone/email link colors */
.top-header-social-icon ul li a { color: #666; font-size: 14px; }
.top-header-social-icon ul li a:hover { color: #7EB63B; }
.top-header-social-icon ul li a i { margin-right: 6px; }

/* Fix header dividers so they don't over-render on small screens */
@media (max-width: 991px) {
    .top-header-infor ul li { display: block; margin: 4px 0; text-align: left; }
    .top-header-infor ul li:before { display: none; }
    .top-header-social-icon { text-align: left !important; margin-top: 4px; }
    .top-header-social-icon ul li:before { display: none; }
    .top-header-social-icon ul li { margin-right: 18px; }
}

/* Header logo — a bit taller than default */
.header-logo img { max-height: 60px; width: auto; }
.header-logo:before { display: none; }
.footer-logo img { max-height: 60px; width: auto; }

/* Header right group */
.header-right { gap: 20px; }
.header-right .header-button { margin: 0; }
.header-right .header-button a { margin-left: 0; }

/* Keep header (with cart) visible on mobile — responsive.css hides it by default */
@media (max-width: 991px) {
    #sticky-header.header-area { display: block !important; padding: 10px 15px; }
    #sticky-header .header-logo img { max-height: 44px; }
    #sticky-header .header-right { gap: 10px; }
}
@media (max-width: 575px) {
    #sticky-header .header-button { display: none !important; }
}

/* Active menu item */
.header-menu ul li.current > a { color: #7EB63B; font-weight: 600; }

/* ===== Cart widget (Livewire) ===== */
.cart-widget { position: relative; display: inline-block; }
.cart-trigger {
    background: transparent; border: 0; padding: 0; cursor: pointer; position: relative;
    width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: #062462; transition: .3s;
}
.cart-trigger:hover { background: #7EB63B; color: #fff; }
.cart-trigger .cart-trigger-icon { font-size: 20px; }
.cart-badge {
    position: absolute; top: -4px; right: -4px;
    background: #7EB63B; color: #fff; border-radius: 999px;
    font-size: 11px; font-weight: 700; min-width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.cart-panel {
    position: absolute; top: calc(100% + 12px); right: 0;
    width: 340px; max-width: 92vw;
    background: #fff; border-radius: 8px;
    box-shadow: 0 20px 45px rgba(6,36,98,.18);
    padding: 20px; z-index: 500;
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.cart-widget.cart-open .cart-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cart-panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.cart-panel-title { font-weight: 700; color: #062462; font-size: 15px; }
.cart-panel-count { color: #7EB63B; font-size: 13px; font-weight: 500; }
.cart-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eee; }
.cart-line-img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.cart-line-body { flex: 1 1 auto; }
.cart-line-title { font-size: 13px; font-weight: 600; color: #062462; margin-bottom: 4px; }
.cart-line-controls { display: flex; justify-content: space-between; align-items: center; }
.cart-qty { display: inline-flex; align-items: center; gap: 4px; }
.cart-qty button { width: 24px; height: 24px; border: 1px solid #ddd; background: #fff; border-radius: 4px; color: #062462; cursor: pointer; padding: 0; line-height: 1; }
.cart-qty button:hover { background: #7EB63B; color: #fff; border-color: #7EB63B; }
.cart-qty span { min-width: 20px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-line-price { color: #7EB63B; font-weight: 700; font-size: 13px; }
.cart-line-remove { border: 0; background: transparent; color: #999; cursor: pointer; padding: 0 4px; font-size: 18px; line-height: 1; }
.cart-line-remove:hover { color: #f04747; }
.cart-empty { padding: 24px 0; text-align: center; color: #666; }
.cart-empty-icon { display: inline-block; font-size: 36px; color: #ddd; margin-bottom: 8px; }
.cart-panel-foot { padding-top: 12px; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; color: #062462; }
.cart-total strong { color: #7EB63B; }
.cart-btn-primary { display: inline-block; width: 100%; text-align: center; background: #7EB63B; color: #fff !important; padding: 10px 20px; border-radius: 5px; font-weight: 600; transition: .3s; border: 1px solid #7EB63B; }
.cart-btn-primary:hover { background: #fff; color: #7EB63B !important; }
[x-cloak] { display: none !important; }

/* ===== Feedback modal ===== */
.fb-modal { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fb-modal[hidden] { display: none !important; }
.fb-modal-backdrop { position: absolute; inset: 0; background: rgba(6,36,98,.55); cursor: pointer; }
.fb-modal-dialog { position: relative; background: #fff; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.3); width: 100%; max-width: 480px; padding: 30px; max-height: 90vh; overflow-y: auto; }
.fb-modal-close { position: absolute; top: 12px; right: 14px; background: transparent; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #999; }
.fb-modal-close:hover { color: #7EB63B; }
.fb-modal-title { color: #062462; margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.fb-modal-subject { color: #7EB63B; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 8px; }
.fb-modal-text { color: #666; font-size: 14px; margin-bottom: 18px; }
.fb-modal .form-box { margin-bottom: 12px; }
.fb-modal .form-box label { display: block; font-size: 13px; color: #062462; margin-bottom: 4px; font-weight: 500; }
.fb-modal .fb-optional { color: #888; font-weight: 400; font-size: 12px; }
.fb-modal .form-box input, .fb-modal .form-box textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; font-family: inherit; background: #f9f9f9; }
.fb-modal .form-box input:focus, .fb-modal .form-box textarea:focus { border-color: #7EB63B; outline: 0; background: #fff; }
.fb-modal .submit-button { margin-top: 8px; }
.fb-modal .submit-button button { display: block; width: 100%; background: #7EB63B; color: #fff; border: 0; padding: 12px 20px; border-radius: 5px; font-size: 15px; font-weight: 600; cursor: pointer; transition: .3s; }
.fb-modal .submit-button button:hover { background: #062462; }
.fb-modal-output { min-height: 20px; margin: 10px 0 4px; font-size: 14px; }
.fb-modal-output.is-error { color: #d84545; }
.fb-modal-output.is-success { color: #7EB63B; }
body.fb-open { overflow: hidden; }

/* ===== Service card — clickable overlay ===== */
.single-service-box { cursor: default; }
.single-service-box[data-open-feedback] { cursor: pointer; }
.single-service-box[data-open-feedback]:hover .service-icon { transform: translateY(-4px); }
.single-service-box[data-open-feedback] .service-content h4 a { pointer-events: none; }

/* ===== Product card — retail styling ===== */
.single-products-box { position: relative; background: #fff; border-radius: 6px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 6px 20px rgba(6,36,98,.06); transition: .3s; }
.single-products-box:hover { box-shadow: 0 12px 30px rgba(6,36,98,.15); }
.single-products-box .products-thumb { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #f5f5f5; }
.single-products-box .products-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.single-products-box:hover .products-thumb img { transform: scale(1.06); }
.single-products-box .product-content { padding: 18px 20px 20px; text-align: center; }
.single-products-box .product-title h2 { font-size: 17px; color: #062462; margin: 6px 0 6px; font-weight: 600; }
.single-products-box .product-price p { color: #7EB63B; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.single-products-box .product-price p.free { color: #999; }
.product-add-btn { display: inline-block; background: #7EB63B; color: #fff !important; border: 1px solid #7EB63B; padding: 8px 22px; border-radius: 4px; font-weight: 600; transition: .3s; cursor: pointer; font-size: 13px; }
.product-add-btn:hover { background: transparent; color: #7EB63B !important; }
.product-add-btn.is-disabled { opacity: .5; pointer-events: none; }

/* Category filter chips */
.catalog-filter { text-align: center; margin-bottom: 40px; }
.catalog-filter a { display: inline-block; margin: 4px 6px; padding: 8px 22px; border-radius: 999px; background: #fff; color: #062462; border: 1px solid #e0e0e0; transition: .3s; font-size: 14px; font-weight: 500; }
.catalog-filter a:hover, .catalog-filter a.is-active { background: #7EB63B; color: #fff; border-color: #7EB63B; }

/* Contact / checkout page tweaks */
.info-block { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 6px 20px rgba(6,36,98,.06); margin-bottom: 30px; }
.info-block h4 { color: #062462; font-weight: 700; margin-bottom: 14px; }
.info-block .form-box { margin-bottom: 14px; }
.info-block .form-box label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: #062462; }
.info-block .form-box input, .info-block .form-box textarea, .info-block .form-box select { width: 100%; padding: 10px 14px; border: 1px solid #ddd; background: #f9f9f9; border-radius: 5px; font-size: 14px; font-family: inherit; }
.info-block .form-box input:focus, .info-block .form-box textarea:focus { border-color: #7EB63B; outline: 0; background: #fff; }

.checkout-summary { background: #f8f8f8; padding: 24px; border-radius: 8px; }
.checkout-summary .row-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #ddd; font-size: 14px; }
.checkout-summary .row-line:last-of-type { border-bottom: 0; }
.checkout-summary .row-total { font-size: 18px; font-weight: 700; color: #062462; padding-top: 14px; border-top: 2px solid #062462; margin-top: 6px; }
.checkout-summary .row-total strong { color: #7EB63B; }

.privacy-block { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 6px 20px rgba(6,36,98,.06); }
.privacy-block h2 { color: #062462; font-size: 24px; margin: 24px 0 10px; }
.privacy-block h2:first-child { margin-top: 0; }
.privacy-block p, .privacy-block li { color: #555; line-height: 1.7; }
.privacy-block ul { padding-left: 20px; margin-bottom: 16px; }

/* Contact map */
.contact-map iframe { width: 100%; height: 420px; border: 0; display: block; border-radius: 8px; }

/* Alerts */
.alert-box { padding: 12px 18px; margin-bottom: 20px; border-radius: 5px; }
.alert-error { background: #fdecec; color: #b03a3a; border: 1px solid #f4bcbc; }
.alert-success { background: #ecf7e0; color: #4c8c1e; border: 1px solid #c3dfa1; }

/* Uniform service-thumb heights on services page */
.service-thumb { aspect-ratio: 4/3; overflow: hidden; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Breadcrumb tweak */
.breadcumb-section { min-height: 240px; }
.breadcumb-title h1 { color: #fff; }

/* Fix top-header phone icon spacing */
.top-header-social-icon ul li a i { color: inherit; }

/* Hero (home) simplified banner if the slider owl fails */
.solar-hero { min-height: 620px; background-size: cover; background-position: center; display: flex; align-items: center; color: #fff; position: relative; }
.solar-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,36,98,.75) 0%, rgba(6,36,98,.35) 60%, rgba(6,36,98,0) 100%); }
.solar-hero .container { position: relative; z-index: 1; }
.solar-hero h1 { font-size: 54px; color: #fff; line-height: 1.1; }
.solar-hero h4 { color: #FFB020; letter-spacing: 3px; text-transform: uppercase; font-size: 14px; margin-bottom: 8px; }
.solar-hero p { color: rgba(255,255,255,.9); max-width: 560px; margin: 18px 0 26px; }
.solar-hero .solar-button a { margin-right: 12px; }
@media (max-width: 767px) {
    .solar-hero { min-height: 460px; }
    .solar-hero h1 { font-size: 34px; }
}

/* Force uniform tile heights */
.uniform-media { aspect-ratio: 16/10; overflow: hidden; background: #f0f0f0; }
.uniform-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Remove any legacy social icon groups if present */
.footer-socail-ion { display: none !important; }
