/* Testovací shortcode */
.test-shortcode-content {
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-top: 20px;
}

.test-shortcode-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

/* Štítek "Školení zdarma" ve výpisu produktů */
.skoleni-zdarma-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #8cd98c;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    z-index: 10;
}

/* Štítek "Výprodej" ve výpisu produktů */
.vyprodej-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f44336;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    z-index: 10;
}

ul.products.produkty-zapujcit .skoleni-zdarma-badge,
ul.products.produkty-zapujcit .vyprodej-badge,
ul.products.produkty-pronajem .skoleni-zdarma-badge,
ul.products.produkty-pronajem .vyprodej-badge {
  display: none !important;
}

/* Informace o výprodeji v detailu produktu */
.vyprodej-detail {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #fff5f5;
    border: 1px solid #e7d1d1;
    border-radius: 5px;
}

.vyprodej-icon {
    flex: 0 0 40px;
    margin-right: 15px;
}

.vyprodej-icon img {
    width: 100%;
    height: auto;
}

.vyprodej-text {
    flex: 1;
    font-size: 14px;
}

.product-cta-wrap { 
    margin: 32px 0 0 0 !important;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    flex-direction: row;
}
.product-cta-wrap .button { /* sem můžeš přidat vlastní vzhled */ }

.woocommerce a.button {
    display: inline-flex;
    align-items: center;

    height: 48;
    min-height: 48px;
    gap: 8;
    opacity: 1;
    padding-top: var(--padding-12);
    padding-right: var(--padding-24);
    padding-bottom: var(--padding-12);
    padding-left: var(--padding-24);

    border-radius: var(--radius-s);
    background: var(--button-primary-primary-default, #00DFEA);

    font-weight: 600;
    font-size: 1rem;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: var(--text-positive-primary, #022930) !important;    
}

.woocommerce a.button.mam-zajem-button {
    display: inline-flex;
    align-items: center;

    height: 48;
    min-height: 48px;
    gap: 8;
    opacity: 1;
    padding-top: var(--padding-12);
    padding-right: var(--padding-24);
    padding-bottom: var(--padding-12);
    padding-left: var(--padding-24);

    border-radius: var(--radius-s);
    background: var(--button-primary-primary-default, #00DFEA);

    font-weight: 600;
    font-size: 1rem;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: var(--text-positive-primary, #022930) !important;
}

.woocommerce a.button.zapujcit-button {
    display: inline-flex;
    align-items: center;

    height: 48;
    min-height: 48px;
    gap: 8;
    opacity: 1;
    padding-top: var(--padding-12);
    padding-right: var(--padding-24);
    padding-bottom: var(--padding-12);
    padding-left: var(--padding-24);

    border-radius: var(--radius-s);
    border: 1px solid var(--button-secondary-secondary-bglight-default, #008C9D52);
    background: transparent !important;

    font-weight: 600;
    font-size: 1rem;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: var(--text-positive-primary, #022930) !important;

}

/* Tlačítko "Chci si produkt zapůjčit" */
.zapujcit-button {
    margin-left: 10px;
    background-color: #4CAF50 !important;
    color: white !important;
}

.zapujcit-button:hover {
    background-color: #45a049 !important;
}

/* Styly pro modální okno */
.modal {
    max-width: 600px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.modal p {
    margin-bottom: 20px;
}

/* Styly pro formulář v modálním okně */
.modal .wpcf7-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.modal .wpcf7-form input[type="text"],
.modal .wpcf7-form input[type="email"],
.modal .wpcf7-form input[type="tel"],
.modal .wpcf7-form textarea,
.modal .wpcf7-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
}
/*
.modal .wpcf7-form input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 3px;
}

.modal .wpcf7-form input[type="submit"]:hover {
    background-color: #45a049;
}*/

.woocommerce-js div.product .woocommerce-tabs .panel {
    outline-color: #fff;
}

.woocommerce-js div.product .woocommerce-tabs .panel:focus-visible {
    outline: none;
}

.woocommerce-js div.product .product_meta {
    display: none;
}

.ast-single-product-thumbnails .ast-woocommerce-product-gallery__image {
    width: 88px !important;
    margin-right: 0 !important;
    float: none;
}

/* Zajisti, že samotný obrázek má 72×72 a nebude se natahovat */
.ast-single-product-thumbnails .woocommerce-product-gallery-thumbnails__wrapper img,
.ast-single-product-thumbnails .ast-woocommerce-product-gallery__image img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    max-width: none !important;
}

/* (Volitelné) pokud wrapper počítá šířku na procenta, zamez overflowu */
.ast-single-product-thumbnails .woocommerce-product-gallery-thumbnails__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; 
}

.product-additional-info {
    margin: 32px 0 0 0;
    padding: 0;
    border-width: 1px 0 0 0;
    border-style: solid;
    border-color: var(--border-primary-solid, #E2E2E5);
}

.product-additional-info .section {
    margin: 0;
    padding: 20px 0;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: var(--border-primary-solid, #E2E2E5);
}

.product-additional-info .title {
    font-weight: 650;
    font-style: Bold;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
    color: var(--text-positive-primary, #022930);
}

.product-additional-info .section ul,
.product-additional-info .section p {
    padding-bottom: 0;
    margin-bottom: 0;
}

.product-additional-info .title {
    display: block;
    padding: 0 0 0 32px;
    margin: 0 0 16px 0;
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: 0 50%;
}

.product-additional-info .file-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.product-additional-info .file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    overflow: hidden; /* Skryje to, co přeteče */
}

.product-additional-info .file-item .title {
    flex: 1;
    min-width: 0;
    
    /* Vlastnosti pro oříznutí: */
    white-space: nowrap;       /* Zakáže zalomení na nový řádek */
    overflow: hidden;          /* Skryje přetékající text */
    text-overflow: ellipsis;   /* Přidá "..." na konec */
}

.product-additional-info .file-item .file-link {
    flex-shrink: 0;
}

.technicke-informace .title {
    background-image: url("data:image/svg+xml;utf8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M12 11.5V16.5M12 7.51L12.01 7.49889M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z' stroke='%23022930' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.normy .title {
    background-image: url("data:image/svg+xml;utf8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M20 12V5.74853C20 5.5894 19.9368 5.43679 19.8243 5.32426L16.6757 2.17574C16.5632 2.06321 16.4106 2 16.2515 2H4.6C4.26863 2 4 2.26863 4 2.6V21.4C4 21.7314 4.26863 22 4.6 22H13M8 10H16M8 6H12M8 14H11M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20M22.5477 15.774L19.9923 15.125C19.6692 15.043 19.3308 15.043 19.0077 15.125L16.4523 15.774C16.1863 15.8416 15.9987 16.0833 16.0069 16.3576C16.1786 22.1159 19.5 23 19.5 23C19.5 23 22.8214 22.1159 22.9931 16.3576C23.0013 16.0833 22.8137 15.8416 22.5477 15.774Z' stroke='%23022930' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.videa .title {
    background-image: url("data:image/svg+xml;utf8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6Z' stroke='%23022930' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M9.89768 8.51296C9.49769 8.28439 9 8.57321 9 9.03391V14.9661C9 15.4268 9.49769 15.7156 9.89768 15.487L15.0883 12.5209C15.4914 12.2906 15.4914 11.7094 15.0883 11.4791L9.89768 8.51296Z' stroke='%23022930' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.soubory .title {
    background-image: url("data:image/svg+xml;utf8,<svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M16 2H16.2515C16.4106 2 16.5632 2.06321 16.6757 2.17574L19.8243 5.32426C19.9368 5.43679 20 5.5894 20 5.74853V6M16 2H4.6C4.26863 2 4 2.26863 4 2.6V8M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20M20 6V8M4 19.5V21.4C4 21.7314 4.26863 22 4.6 22H19.4C19.7314 22 20 21.7314 20 21.4V19.5M3 17V14M3 14V11H5.5C6.32843 11 7 11.6716 7 12.5C7 13.3284 6.32843 14 5.5 14H3ZM18 17V14M18 14V11H21.5M18 14H20.2222M10 11H12C13.6569 11 15 12.3431 15 14C15 15.6569 13.6569 17 12 17H10V11Z' stroke='%23022930' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.product-additional-info .grid-videa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ast-shop-toolbar-aside-wrap {
    display: none !important;
}

.woocommerce .ast-shop-toolbar-container {
    margin-top: 32px;
    margin-bottom: 16px;
    justify-content: space-between;
    align-items: center;
}

/* Styly pro responzivní zobrazení */
@media (max-width: 768px) {
    .zapujcit-button {
        margin-top: 10px;
        margin-left: 0;
        display: block;
        text-align: center;
    }
    
    .modal {
        width: 90%;
        padding: 20px;
    }
}