/*
Theme Name: Hestia Child
Theme URI: https://tbauto.lv/
Description: Hestia dočchilditēma priekš rezerves daļām
Author: Aleksejs
Template: hestia
Version: 1.0.0
Text Domain: hestia-child
*/

/* Šeit nāks rezerves daļu kartītes stili (nākamajā solī) */
/* ==========================================================================
   Rezerves daļas — vienas detaļas kartītes stili (v3)
   ========================================================================== */

/* Balts fons visai detaļas lapai */
body.single-rezerves_dala {
    background: #fff;
}

/* Novērš Hestia dubulto apakšējo līniju input laukiem */
.rd-order .wpcf7 input[type="text"],
.rd-order .wpcf7 input[type="email"],
.rd-order .wpcf7 select {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background-image: none !important;
    background-color: #fff !important;
}

/* Atstarpe zem header, lai bloks neaizlīst zem tā */
.rd-single-wrapper {
    background: #fff;
    padding: 150px 0 60px;
}

.rd-single.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Divu kolonnu izkārtojums — attēls pa kreisi, info pa labi */
body.single-rezerves_dala .rd-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

body.single-rezerves_dala .rd-media {
    flex: 0 1 50%;
    max-width: 50%;
    min-width: 280px;
}

body.single-rezerves_dala .rd-info {
    flex: 1 1 45%;
    min-width: 280px;
}

.rd-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.rd-image--placeholder {
    width: 100%;
    padding-top: 75%;
    background: #f0f0f0;
}

.rd-title {
    font-size: 1.9rem;
    line-height: 1.25;
    margin: 0 0 18px;
    color: #2f3a4a;
}

/* Aizstāto kodu saraksts — palielināts */
.rd-codes {
    margin: 0 0 18px;
    color: #555;
}

.rd-codes-label {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    color: #2f3a4a;
    font-size: 1.4rem;
}

.rd-codes-value {
    font-size: 1.4rem;
}

/* Cenas */
.rd-price {
    margin: 0 0 18px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.rd-price-old {
    text-decoration: line-through;
    color: #000;
    font-size: 2rem;
    font-weight: 400;
}

.rd-price-new {
    color: #c0392b;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.rd-price-single {
    color: #2f3a4a;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

/* Atlikums noliktavā */
.rd-stock {
    margin: 0 0 22px;
    font-size: 1.5rem;
}

.rd-stock-label {
    font-weight: 600;
    color: #2f3a4a;
}

.rd-stock-value {
    color: #27793b;
    font-weight: 600;
}

.rd-description {
    margin: 0 0 26px;
    line-height: 1.6;
    color: #444;
}

.rd-order {
    border-top: 1px solid #e5e5e5;
    padding-top: 22px;
}

.rd-order-title {
    font-size: 1.3rem;
    margin: 0 0 16px;
    color: #2f3a4a;
}

/* CF7 formas lauki — label palielināts */
.rd-order .wpcf7 label {
    display: block;
    margin-bottom: 14px;
    font-size: 1.2rem;
    color: #333;
}

.rd-order .wpcf7 input[type="text"],
.rd-order .wpcf7 input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.4rem;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* Select ar bultiņu */
.rd-order .wpcf7 select {
    padding: 10px 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.4rem;
    box-sizing: border-box;
    min-width: 90px;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

.rd-order .wpcf7 h3,
.rd-order .wpcf7 h4 {
    margin: 20px 0 10px;
    color: #2f3a4a;
}

.rd-order .wpcf7 input[type="submit"] {
    background: #1c5da8;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

.rd-order .wpcf7 input[type="submit"]:hover {
    background: #164a86;
}

/* Mobilā versija — viena kolonna */
@media (max-width: 768px) {
    .rd-single-wrapper {
        padding: 70px 0 40px;
    }
    body.single-rezerves_dala .rd-grid {
        flex-direction: column;
        gap: 24px;
    }
    body.single-rezerves_dala .rd-media,
    body.single-rezerves_dala .rd-info {
        max-width: 100%;
        flex-basis: 100%;
    }
    .rd-title {
        font-size: 1.5rem;
    }
    .rd-price-new,
    .rd-price-single {
        font-size: 1.7rem;
    }
    .rd-codes-label,
    .rd-codes-value {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   Rezerves daļas — saraksts (shortcode [rezerves_dalas]), 2 kolonnas
   Vertikāla kartīte: attēls augšā -> nosaukums -> cena -> pieejamība
   ========================================================================== */

.rd-list {
    display: grid;
    gap: 24px;
    margin: 30px 0;
}

.rd-list--cols-2 {
    grid-template-columns: repeat(3, 1fr);
}

.rd-list-item {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rd-list-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Vertikāls izkārtojums */
.rd-list-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.rd-list-media {
    width: 100%;
}

.rd-list-image {
    width: 100%;
    height: auto;
    display: block;
}

.rd-list-image--placeholder {
    width: 100%;
    padding-top: 66%;
    background: #f0f0f0;
}

.rd-list-info {
    padding: 20px;
    text-align: center;
}

/* Kodu saraksts sarakstā netiek rādīts (redzams tikai detaļas lapā) */
.rd-list-codes {
    display: none;
}

.rd-list-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 14px;
    color: #2f3a4a;
}

.rd-list-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 12px;
}

.rd-list-price-old {
    text-decoration: line-through;
    color: #000;
    font-size: 1.4rem;
    font-weight: 400;
}

.rd-list-price-new {
    color: #c0392b;
    font-size: 1.9rem;
    font-weight: 700;
}

.rd-list-price-single {
    color: #2f3a4a;
    font-size: 1.9rem;
    font-weight: 700;
}

.rd-list-stock {
    font-size: 1.2rem;
    color: #27793b;
    font-weight: 600;
    margin: 0;
}

.rd-list-empty {
    padding: 20px;
    color: #777;
}

/* Mazi ekrāni — viena kolonna */
@media (max-width: 782px) {
    .rd-list--cols-2 {
        grid-template-columns: 1fr;
    }
    .rd-list-title {
        font-size: 1.3rem;
    }
    .rd-list-price-new,
    .rd-list-price-single {
        font-size: 1.6rem;
    }
}

/* Planšetes / mazi ekrāni — viena kolonna */
@media (max-width: 782px) {
    .rd-list--cols-2 {
        grid-template-columns: 1fr;
/* 		padding: 0 15px; */
    }
	.rd-catalog {
		padding: 0 15px;
	}
}

/* Ļoti mazi ekrāni — attēls virs teksta */
@media (max-width: 480px) {
    .rd-list-link {
        flex-direction: column;
    }
    .rd-list-media {
        flex-basis: auto;
        max-width: 100%;
    }
}

/* ==========================================================================
   Rezerves daļas — pagination
   ========================================================================== */

.rd-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 34px 0 10px;
}

.rd-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #2f3a4a;
    font-size: 0.95rem;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.rd-page:hover {
    background: #f2f5f9;
    border-color: #1c5da8;
}

.rd-page--current {
    background: #1c5da8;
    border-color: #1c5da8;
    color: #fff;
    font-weight: 700;
}

.rd-page--prev,
.rd-page--next {
    font-weight: 600;
}

@media (max-width: 480px) {
    .rd-page {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 0.85rem;
    }
}

.text-margin {
	margin-bottom: 0px !important;
}
.footer.footer.footer-black hr {
	display: none;
}

.hestia-bottom-footer-content {
	display: none;
}


/* ==========================================================================
   Katalogs (galvenā lapa) — tīrs skats bez baneri/virsraksta/pelēkajām malām
   ========================================================================== */

/* Melns fons visai lapai */
body.home {
    background: #111 !important;
}

/* --- Noņem rozā virsraksta baneri (page header) --- */
body.home .header-half-transparent,
body.home .page-header,
body.home .header-filter,
body.home .title-container {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
}

/* --- Noņem "ADD A MENU" / navigācijas saturu --- */
body.home .navbar-nav,
body.home #main-nav,
body.home .navbar-collapse.collapse {
    display: none !important;
}

/* --- Baltā "blog-post" apvalka noņemšana (ēna, fons, atstarpes) --- */
body.home .main,
body.home .main-raised {
    margin: 0 !important;
    padding: 40px 0;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.home .blog-post,
body.home .blog-post .card,
body.home .page-content-wrap {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

/* --- Konteinera platums 1140px --- */
body.home .container,
body.home .blog-post,
body.home .page-content-wrap {
    width: 100% !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
	padding-left: 0px;
	padding-right: 0px;
    float: none !important;
}

/* Noņem Bootstrap col-offset nobīdi, ja tāda ir */
body.home .col-md-8.col-md-offset-2,
body.home .page-content-wrap.col-md-offset-2 {
    margin-left: auto !important;
    max-width: 1140px !important;
    flex: 0 0 100% !important;
}

/* --- Saraksta kartītes paliek baltas uz melnā fona --- */
body.home .rd-list-item {
    background: #fff !important;
}

/* Promo teksts virs saraksta — balts, lai lasāms uz melna */
body.home .rd-list ~ *,
body.home .entry-content p,
body.home .page-content-wrap > p {
    color: #fff !important;
}

.hestia-title-tagline-wrap .site-title {
	color: #000;
	font-size: 22px;
	font-weight: 500;
}
.page-content-wrap.col-md-offset-2 {
	margin-left: 0 !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	width: 100% !important;
}


.page-content-wrap h1 {
	color: #fff;
	font-size: 32px;
	
	max-width: 700px;
	margin: 0 auto !important;
	text-align: center;
}
.page-content-wrap p {
	font-size: 32px;
	text-align: center;
	font-weight: 500;
}
@media (max-width: 768px) {
	body.home .main, body.home .main-raised   {
		padding: 0 20px;
	}
	.page-content-wrap h1 {
		max-width: 100%;
		font-size: 24px;
		padding-top: 100px;
	}
	.page-content-wrap p {
		font-size: 24px;
	}
	.col-md-4 {
		padding: 0 20px;
	}
}

.footer-big p {
	color: #fff;
	font-weight: 500;
	font-size: 14px;
}
.widget.widget_block.widget_text {
 margin-bottom: 0;	
}

.hestia-bottom-footer-content {
	display: flex !important;
    justify-content: flex-start;
    font-size: 14px;
    color: #ffff;
    margin-top: 20px;
	border-top: 1px solid;
}

.footer-big .copyright {
	padding: 0;
}

@media (max-width: 768px) {
	.footer .copyright{
		display: inline-flex !important;
	}
}

/* ==========================================================================
   Rezerves daļu katalogs — meklēšanas bloks (v3)
   Pārspēj Hestia noklusējuma input/button stilus (līnija, sarkanā ēna)
   ========================================================================== */

.rd-catalog {
    width: 100%;
}

.rd-search {
    display: flex;
	align-items:center !important;
    gap: 0;
    max-width: 700px;
    margin: 0 auto 36px;
    align-items: stretch;
    background: #fff;
    border-radius: 0px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* Input — noņem Hestia apakšlīniju, ēnu, fona gradientu */
.rd-search .rd-search-input,
.rd-catalog .rd-search-input {
    flex: 1 1 auto;
    padding: 18px 22px !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: #fff !important;
    background-image: none !important;
    color: #222 !important;
    font-size: 2rem !important;
    line-height: 1.2 !important;
    box-sizing: border-box;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: auto !important;
    margin: 0 !important;
}

.rd-search .rd-search-input:focus,
.rd-catalog .rd-search-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
}

.rd-search-input::placeholder {
    color: #999 !important;
    font-size: 2rem !important;
    opacity: 1;
}

/* Meklēšanas poga — noņem Hestia sarkano hover ēnu */
.rd-search .rd-search-btn,
.rd-catalog .rd-search-btn {
    flex: 0 0 auto;
    padding: 10px 34px !important;
/*     background: #2f3a4a !important; */
	background: #1c5da8;
	background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: none !important;
    margin: 0 !important;
    transition: background 0.15s ease !important;
    transform: none !important;
	-webkit-appearance: none !important;
appearance: none !important;
}

.rd-search .rd-search-btn:hover,
.rd-catalog .rd-search-btn:hover,
.rd-search .rd-search-btn:focus,
.rd-catalog .rd-search-btn:focus {
    background: #1c2530 !important;
    box-shadow: none !important;
    color: #fff !important;
    transform: none !important;
}

/* Notīrīšanas poga (x) */
.rd-search .rd-search-reset,
.rd-catalog .rd-search-reset {
    flex: 0 0 auto;
    width: 56px;
	margin-left: 10px !important;
    margin-right: 10px !important;
	padding: 11px;
    background: #f0f0f0 !important;
    background-image: none !important;
    color: #666 !important;
    border: none !important;
    border-left: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    font-size: 1.6rem !important;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    transform: none !important;
	-webkit-appearance: none !important;
appearance: none !important;
}

.rd-search .rd-search-reset:hover,
.rd-catalog .rd-search-reset:hover {
    background: #e5e5e5 !important;
    color: #c0392b !important;
    box-shadow: none !important;
    transform: none !important;
}

.rd-loading {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-size: 1rem;
}

.rd-results {
    transition: opacity 0.15s ease;
}

/* Pagination */
.rd-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 36px 0 10px;
}

.rd-pagination .rd-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
    background: #1e1e1e !important;
    background-image: none !important;
    color: #eee !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}

.rd-pagination .rd-page:hover {
    background: #2f3a4a !important;
    border-color: #2f3a4a !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

.rd-pagination .rd-page--current {
    background: #fff !important;
    border-color: #fff !important;
    color: #111 !important;
    font-weight: 700;
    cursor: default;
}

.rd-list-empty {
    text-align: center;
    color: #ccc;
    font-size: 1.05rem;
    padding: 30px 20px;
}

/* Mobilais */
@media (max-width: 600px) {
    .rd-search .rd-search-input,
    .rd-catalog .rd-search-input {
        font-size: 1.1rem !important;
        padding: 14px 16px !important;
    }
    .rd-search-input::placeholder {
        font-size: 1.1rem !important;
    }
     .rd-search .rd-search-btn,
    .rd-catalog .rd-search-btn {
        padding: 10px 18px !important;  
        font-size: 0.95rem !important;
    }
}