/**
 * Widgetico - Product Widget CSS
 * Styly pro Product widget s různými templaty
 */

/* Základní styly pro všechny templaty */
.widgetico-product {
    width: 100%;
}

.widgetico-product-item {
    position: relative;
    overflow: hidden;
}

.widgetico-product-image {
    position: relative;
    overflow: hidden;
}

.widgetico-product-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.widgetico-product-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.widgetico-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widgetico-product-title a:hover {
    color: #0073aa;
}

.widgetico-product-price {
    font-size: 1.25em;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.widgetico-product-price del {
    opacity: 0.6;
    margin-right: 8px;
    font-size: 0.9em;
}

.widgetico-product-price ins {
    text-decoration: none;
    color: #28a745;
}

.widgetico-product-btn,
.widgetico-product-btn.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
    text-align: center;
    margin-top: 10px;
}

.widgetico-product-btn:hover,
.widgetico-product-btn.button:hover {
    background-color: #005a87;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.widgetico-product-btn-compact {
    padding: 8px 16px;
    font-size: 0.9em;
}

.widgetico-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3232;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 10;
}

.widgetico-product-excerpt {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
}

/* Card Template */
.widgetico-product[data-template="card"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.widgetico-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
    .widgetico-product[data-template="card"] {
        grid-template-columns: 1fr;
    }
}

.widgetico-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.widgetico-product-card .widgetico-product-image {
    position: relative;
    overflow: hidden;
}

.widgetico-product-card .widgetico-product-image img {
    width: 100%;
    height: auto;
}

.widgetico-product-card .widgetico-product-content {
    padding: 15px;
}

.widgetico-product-card .widgetico-product-title {
    font-size: 1.1em;
}

/* Grid Template */
.widgetico-product[data-template="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.widgetico-product-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.widgetico-product-grid .widgetico-product-image {
    width: 100%;
}

.widgetico-product-grid .widgetico-product-content {
    padding: 15px;
}

.widgetico-product-grid .widgetico-product-title {
    font-size: 1em;
    margin-bottom: 8px;
}

.widgetico-product-grid .widgetico-product-price {
    font-size: 1.1em;
    margin: 8px 0;
}

.widgetico-product-grid .widgetico-product-btn {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .widgetico-product[data-template="grid"] {
        grid-template-columns: 1fr;
    }
}

/* Compact Template */
.widgetico-product-compact {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.widgetico-product-compact:last-child {
    border-bottom: none;
}

.widgetico-product-compact .widgetico-product-image-wrapper {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    width: 80px;
}

.widgetico-product-compact .widgetico-product-image {
    width: 100%;
    margin-bottom: 0;
}

.widgetico-product-compact .widgetico-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.widgetico-product-compact .widgetico-product-button-wrapper {
    width: 100%;
    margin-top: 8px;
}

.widgetico-product-compact .widgetico-product-button-wrapper .widgetico-product-btn {
    width: 100%;
    margin-top: 0;
    padding: 6px 8px;
    font-size: 0.85em;
    text-align: center;
}

.widgetico-product-compact .widgetico-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.widgetico-product-compact .widgetico-product-title {
    font-size: 0.95em;
    margin: 0 0 5px 0;
}

.widgetico-product-compact .widgetico-product-price {
    font-size: 1em;
    margin: 0;
}

/* Modern Template */
.widgetico-product-modern {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.widgetico-product-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.widgetico-product-modern .widgetico-product-image {
    position: relative;
    overflow: hidden;
}

.widgetico-product-modern .widgetico-product-image img {
    transition: transform 0.5s ease;
}

.widgetico-product-modern:hover .widgetico-product-image img {
    transform: scale(1.1);
}

.widgetico-product-modern .widgetico-product-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.widgetico-product-modern:hover .widgetico-product-hover-overlay {
    opacity: 1;
}

.widgetico-product-modern .widgetico-product-hover-overlay .widgetico-product-btn {
    background-color: #fff;
    color: #333 !important;
}

.widgetico-product-modern .widgetico-product-hover-overlay .widgetico-product-btn:hover {
    background-color: #f0f0f0;
    color: #333 !important;
}

.widgetico-product-modern .widgetico-product-content {
    padding: 20px;
}

.widgetico-product-modern .widgetico-product-badge {
    top: 15px;
    right: 15px;
}

/* List Template - elegantní seznam s odrážkami */
.widgetico-product[data-template="list"] {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widgetico-product-list-item {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    position: relative;
    padding-left: 50px;
}

.widgetico-product-list-item:last-child {
    border-bottom: none;
}

.widgetico-product-list-item:hover {
    background-color: #f9f9f9;
}

/* Odrážka (custom bullet) */
.widgetico-product-list-item::before {
    content: "•";
    position: absolute;
    left: 20px;
    top: 18px;
    color: #0073aa;
    font-size: 24px;
    line-height: 1;
    font-weight: bold;
}

.widgetico-product-list-name {
    margin-bottom: 8px;
}

.widgetico-product-list-name a {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.widgetico-product-list-name a:hover {
    color: #0073aa;
    text-decoration: none;
}

.widgetico-product-list-excerpt {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.widgetico-product-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.widgetico-product-list-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}

.widgetico-product-list-price .woocommerce-Price-amount {
    color: #28a745;
}

.widgetico-product-list-price del {
    color: #999;
    font-size: 0.85em;
    margin-right: 8px;
}

.widgetico-product-list-price ins {
    text-decoration: none;
    color: #28a745;
}

.widgetico-product-list-button {
    flex-shrink: 0;
}

.widgetico-product-list-button .widgetico-product-btn {
    padding: 8px 20px;
    font-size: 0.9em;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .widgetico-product-list-item {
        padding-left: 40px;
        padding: 15px;
    }
    
    .widgetico-product-list-item::before {
        left: 10px;
        top: 15px;
        font-size: 20px;
    }
    
    .widgetico-product-list-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .widgetico-product-list-price {
        font-size: 1.1em;
    }
    
    .widgetico-product-list-button .widgetico-product-btn {
        width: 100%;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .widgetico-product-modern .widgetico-product-hover-overlay {
        opacity: 1;
    }
}

