/*
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;
    }
}

/* Ļ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;
}

.triumph-title h3.elementor-image-box-title{
	max-width: 70%;
    margin: 0 auto;
    width: 100%;
}