/*
Theme Name:   Logico Child – RSOLE INC
Theme URI:    https://rsoleinc.com
Description:  Child theme of Logico for RSOLE INC (heavy equipment sales).
Author:       Taiba Creations
Template:     logico
Version:      1.0.2
Text Domain:  logico-child
*/

/* Path: wp-content/themes/logico-child/style.css (REPLACES existing file) */

:root {
	--rsole-navy: #0B3A60;
	--rsole-dark: #06233D;
	--rsole-blue: #1E96E8;
	--rsole-cyan: #10B9E2;
	--rsole-sky: #8FD3FF;
	--rsole-line: #DCE5EE;
}

/* ---------- Buttons ---------- */
.rsole-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: var(--logico-radius-small, 10px);
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background .25s, color .25s, border-color .25s;
	border: 1px solid transparent;
	white-space: nowrap;
}
.rsole-btn--solid { background: var(--rsole-blue); color: #fff !important; }
.rsole-btn--solid:hover { background: var(--rsole-navy); }
.rsole-btn--ghost { background: transparent; color: var(--rsole-navy) !important; border-color: var(--rsole-navy); }
.rsole-btn--ghost:hover { background: var(--rsole-navy); color: #fff !important; }
.rsole-btn--wa { background: #25D366; color: #fff !important; }
.rsole-btn--wa:hover { background: #1da851; }
.rsole-btn--lg { padding: 16px 28px; font-size: 15px; width: 100%; }

/* ---------- Equipment cards (shop loop) ---------- */
.woocommerce ul.products li.product .rsole-card-cat {
	display: inline-block;
	margin: 14px 0 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--rsole-blue);
}
.rsole-card-meta {
	list-style: none;
	margin: 12px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--rsole-line);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}
.rsole-card-meta li { margin: 0; padding: 0; font-size: 13px; line-height: 1.4; }
.rsole-card-meta li::before { display: none !important; }
.rsole-card-meta span { color: #6B7A8C; margin-right: 4px; }
.rsole-card-meta strong { color: var(--rsole-navy); font-weight: 700; }
.rsole-cfp { font-weight: 700; color: var(--rsole-navy); }
.rsole-card-actions {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}
.rsole-card-actions .rsole-btn { flex: 1 1 0; padding: 11px 12px; }

/* ---------- Single equipment ---------- */
.rsole-spec-table {
	width: 100%;
	margin: 22px 0 26px;
	border-collapse: collapse;
	font-size: 15px;
}
.rsole-spec-table th,
.rsole-spec-table td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--rsole-line);
	text-align: left;
}
.rsole-spec-table th { width: 42%; color: #6B7A8C; font-weight: 500; background: #F5F8FB; }
.rsole-spec-table td { color: var(--rsole-navy); font-weight: 700; }
.rsole-enquiry-box {
	padding: 24px;
	border-radius: 20px;
	background: var(--rsole-dark);
	margin-bottom: 26px;
}
.rsole-enquiry-alt { display: flex; gap: 10px; margin-top: 10px; }
.rsole-enquiry-alt .rsole-btn { flex: 1 1 0; }
.rsole-enquiry-box .rsole-btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.5); }
.rsole-enquiry-box .rsole-btn--ghost:hover { background: #fff; color: var(--rsole-navy) !important; }
.rsole-enquiry-note { margin: 14px 0 0; font-size: 13px; color: rgba(255,255,255,.7); }

@media (max-width: 480px) {
	.rsole-card-actions,
	.rsole-enquiry-alt { flex-direction: column; }
}

/* ---------- Page hero (theme templates) ---------- */
.rsole-page-hero {
	padding: 20px 20px 0;
}
.rsole-page-hero__inner {
	position: relative;
	min-height: 420px;
	border-radius: 25px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 150px 60px 60px;
	background: linear-gradient(180deg, rgba(6,35,61,.55) 0%, rgba(6,35,61,.85) 100%), var(--rsole-hero-img) center / cover no-repeat;
	color: #fff;
}
.rsole-page-hero__eyebrow {
	font-size: 14px;
	letter-spacing: .02em;
	color: var(--rsole-sky);
	margin-bottom: 14px;
}
.rsole-page-hero__title {
	margin: 0;
	color: #fff !important;
	font-size: clamp(34px, 5vw, 72px);
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	max-width: 1100px;
}
.rsole-page-hero__crumbs {
	margin-top: 22px;
	font-size: 15px;
	color: rgba(255,255,255,.75);
}
.rsole-page-hero__crumbs a { color: #fff; text-decoration: none; }
.rsole-page-hero__crumbs a:hover { color: var(--rsole-sky); }
.rsole-page-hero__crumbs .sep { margin: 0 10px; opacity: .6; }
@media (max-width: 1020px) {
	.rsole-page-hero { padding: 10px 10px 0; }
	.rsole-page-hero__inner { min-height: 320px; padding: 120px 24px 36px; }
}

/* Hide theme's own small page title on templates where the hero is shown */
.rsole-has-hero .page-title-container,
.rsole-has-hero .page-title-section,
.rsole-has-hero .woocommerce-products-header,
.rsole-has-hero .woocommerce-breadcrumb { display: none !important; }
.rsole-has-hero .rsole-page-hero .woocommerce-breadcrumb,
.rsole-has-hero .rsole-page-hero__crumbs { display: block !important; }

/* ---------- Shop loop clean-up ---------- */
.woocommerce ul.products li.product .attachment-woocommerce_flash,
.woocommerce ul.products li.product .product-rating-wrapper,
.woocommerce ul.products li.product .attachment-woocommerce_buttons { display: none !important; }
.woocommerce ul.products li.product .attachment-woocommerce_wrapper img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	border-radius: 18px;
}
.woocommerce ul.products li.product .woocommerce-loop-product-title { margin-top: 2px; }

/* Sidebar CTA */
.rsole-side-cta {
	padding: 26px 24px !important;
	border-radius: 20px;
	background: var(--rsole-dark);
	color: rgba(255,255,255,.8);
}
.rsole-side-cta h6 { color: #fff !important; }
.rsole-side-cta .rsole-btn { margin-top: 6px; }

/* Header sits on top of the hero band (hero is printed before #page) */
.rsole-has-hero .body-container { position: relative; }
.rsole-has-hero #masthead { position: absolute !important; top: 0; left: 0; right: 0; z-index: 999; }

/* Card meta – override theme list styles */
.woocommerce ul.products li.product ul.rsole-card-meta { margin: 12px 0 0 !important; padding: 12px 0 0 !important; width: auto !important; display: flex !important; flex-wrap: wrap; gap: 4px 16px; list-style: none !important; }
.woocommerce ul.products li.product ul.rsole-card-meta li { width: auto !important; margin: 0 !important; padding: 0 !important; display: block !important; float: none !important; flex: 0 0 auto; }
.woocommerce ul.products li.product ul.rsole-card-meta li span { display: block; font-size: 12px; }

/* Single equipment clean-up */
.single-product .product-rating-wrapper,
.single-product .woocommerce-product-rating,
.single-product .attachment-woocommerce_flash,
.single-product .product_meta,
.woocommerce ul.products li.product .star-rating { display: none !important; }
.single-product .summary .price { margin-top: 0; }

/* ---------- Home hero: YouTube background (crop YouTube UI) ---------- */
#rsole-hero .elementor-background-video-container { overflow: hidden; border-radius: inherit; }
#rsole-hero .elementor-background-video-container iframe { transform: translate(-50%,-50%) scale(1.4) !important; transform-origin: center center; pointer-events: none; }
@media (max-width: 767px) {
	#rsole-hero .elementor-background-video-container iframe { transform: translate(-50%,-50%) scale(1.3) !important; }
}

/* ---------- Space above the footer on inner pages ---------- */
body:not(.home) #colophon { margin-top: 110px; }
@media (max-width: 1020px) { body:not(.home) #colophon { margin-top: 70px; } }

/* ---------- Equipment cards: one consistent centred layout ---------- */
.woocommerce ul.products li.product .content-woocommerce-wrapper { text-align: center; }
.woocommerce ul.products li.product ul.rsole-card-meta { justify-content: center; }
.woocommerce ul.products li.product .woocommerce-loop-product-title,
.woocommerce ul.products li.product .woocommerce-loop-product-title a { text-transform: none; }

/* ---------- Single equipment layout ---------- */
@media (min-width: 1021px) {
	.single-product div.product .woocommerce-product-gallery { width: 48% !important; }
	.single-product div.product .summary { width: 48% !important; }
}
.single-product .woocommerce-Tabs-panel h1,
.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3 {
	font-size: 26px;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: -0.01em;
	margin: 30px 0 14px;
}
.single-product .woocommerce-Tabs-panel ul { list-style: disc; padding-left: 22px; margin: 0 0 20px; }
.single-product .woocommerce-Tabs-panel ul li { list-style: disc; padding-left: 4px; margin-bottom: 8px; }
.single-product .woocommerce-Tabs-panel ul li::before { display: none; }
.rsole-enquiry-box { box-sizing: border-box; }
@media (max-width: 1020px) {
	.single-product div.product .summary { margin-top: 30px; }
}

/* Hero buttons: no extra theme margin */
#rsole-hero .elementor-widget-logico_button > .elementor-widget-container { margin-top: 0 !important; }

/* Description tab: theme repeats the attribute table – spec table above already shows it */
.single-product .woocommerce-Tabs-panel .shop_attributes { display: none !important; }
.single-product .woocommerce-Tabs-panel ul li { padding-left: 2px !important; }

/* Gallery: rounded tiles */
.elementor-gallery-item { border-radius: 20px; overflow: hidden; }
@media (max-width: 767px) { .elementor-gallery-item { border-radius: 14px; } }

/* Maps: rounded */
.elementor-widget-google_maps .elementor-custom-embed,
.elementor-widget-google_maps iframe { border-radius: 25px; overflow: hidden; }

/* Single equipment: theme adds a big left margin to the summary, which pushed it under the gallery */
@media (min-width: 1021px) {
	.single-product div.product .summary { margin-left: 0 !important; }
}

/* Equipment cards: less space between photo and category */
/* Same 16px gap under the photo everywhere (shop, home widget, similar equipment) */
.woocommerce ul.products li.product .attachment-woocommerce_wrapper { padding-bottom: 0 !important; height: auto !important; }
.woocommerce ul.products li.product .attachment-woocommerce_wrapper > a,
.woocommerce ul.products li.product .attachment-woocommerce_wrapper img { position: static !important; display: block; height: auto !important; margin: 0 !important; transform: none !important; left: auto !important; top: auto !important; width: 100% !important; }
.woocommerce ul.products li.product .content-woocommerce-wrapper { padding-top: 16px !important; }
.woocommerce ul.products li.product .rsole-card-cat { display: block; margin: 0 0 6px !important; line-height: 1.3; }

/* Gallery lightbox arrows: theme icon font shows wrong glyph, draw clean chevrons */
.elementor-lightbox .elementor-swiper-button i::before { content: "" !important; display: block; width: 16px; height: 16px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; font-family: inherit !important; }
.elementor-lightbox .elementor-swiper-button-next i::before { transform: rotate(45deg); margin-left: -6px; }
.elementor-lightbox .elementor-swiper-button-prev i::before { transform: rotate(-135deg); margin-left: 6px; }

/* ---------- Header: even, MHJ-style menu ---------- */
.elementor-element-0b7bf6f .main-menu > li > a { text-transform: uppercase; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .06em; }
.elementor-element-0b7bf6f .main-menu > li { padding-left: 16px !important; padding-right: 16px !important; margin: 0 !important; }
.elementor-element-2b96637 a { text-decoration: none !important; }
/* Header menu: keep 6 items on one line */
.elementor-element-0b7bf6f .main-menu { flex-wrap: nowrap !important; white-space: nowrap; }
@media (max-width: 1600px) {
	.elementor-element-0b7bf6f > .elementor-widget-container { padding-left: 24px !important; padding-right: 24px !important; }
	.elementor-element-0b7bf6f .main-menu > li { padding-left: 12px !important; padding-right: 12px !important; }
	.elementor-element-0b7bf6f .main-menu > li > a { font-size: 13px !important; letter-spacing: .04em; }
}
@media (max-width: 1366px) {
	.elementor-element-0b7bf6f > .elementor-widget-container { padding-left: 14px !important; padding-right: 14px !important; }
	.elementor-element-0b7bf6f .main-menu > li { padding-left: 8px !important; padding-right: 8px !important; }
	.elementor-element-0b7bf6f .main-menu > li > a { font-size: 12px !important; letter-spacing: .03em; }
}
@media (min-width: 1201px) and (max-width: 1300px) {
	.elementor-element-2b96637 { display: none !important; }
	.elementor-element-0b7bf6f .main-menu > li { padding-left: 7px !important; padding-right: 7px !important; }
}
@media (min-width: 1201px) and (max-width: 1250px) {
	.elementor-element-0b7bf6f .main-menu > li { padding-left: 6px !important; padding-right: 6px !important; }
	.elementor-element-0b7bf6f .main-menu > li > a { font-size: 11px !important; letter-spacing: .02em; }
}

/* ---------- Home hero: photo first, then the video fades in ---------- */
#rsole-hero .elementor-background-video-container { opacity: 0; animation: rsoleVideoIn 1.6s ease 5s forwards; }
@keyframes rsoleVideoIn { to { opacity: 1; } }
#rsole-hero h1, #rsole-hero .elementor-widget-text-editor { text-shadow: 0 2px 18px rgba(6, 35, 61, .45); }

/* Equipment Sales intro */
.rsole-shop-intro { width: 100%; flex: 0 0 100%; margin: 0 0 48px; }
.rsole-shop-intro__eyebrow { font-family: Manrope, sans-serif; font-size: 14px; font-weight: 500; color: #3a4654; margin-bottom: 14px; }
.rsole-shop-intro__title, .woocommerce .rsole-shop-intro h2.rsole-shop-intro__title { font-family: Manrope, sans-serif !important; font-weight: 600 !important; font-size: clamp(28px, 3vw, 44px) !important; line-height: 1.2 !important; letter-spacing: -0.03em !important; color: #111 !important; margin: 0 0 18px !important; text-transform: none !important; }
.rsole-shop-intro p { font-size: 18px; line-height: 1.67; color: #3a4654; margin: 0; max-width: 820px; }
@media (max-width: 767px) { .rsole-shop-intro { margin-bottom: 32px; } .rsole-shop-intro p { font-size: 16px; } }
