/* Custom Product Tabs Frontend Styles */
.woocommerce-tabs .custom-tab {
    margin-bottom: 2em;
}

.woocommerce-tabs .custom-tab .dashicons {
    vertical-align: middle;
    margin-right: 0.5em;
    font-size: 1.1em;
}

.woocommerce-tabs .custom-tab-content {
    padding: 1em 0;
}

/* Verbesserte Button Styles */
.custom_add_to_cart {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-color: #3498db !important;
    color: white !important;
    border: none !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
    padding: 10px 15px !important;
    text-align: center !important;
    display: inline-block !important;
    width: auto !important;
    min-width: 120px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.custom_add_to_cart:hover {
    background-color: #2980b9 !important;
    box-shadow: 0 3px 7px rgba(0,0,0,0.15) !important;
    transform: translateY(-1px) !important;
}

/* Nur eine einfache Ladeanimation */
.custom_add_to_cart.processing {
    cursor: wait;
    opacity: 0.8;
    background-color: #2980b9 !important;
}

.custom_add_to_cart.processing:after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    margin-left: 0.5em;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 10px;
    top: calc(50% - 0.5em);
}

/* Erfolgszustand - grüner Button */
.custom_add_to_cart.added {
    background-color: #27ae60 !important;
    color: #ffffff !important;
    border-color: #219d55 !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(39, 174, 96, 0.3) !important;
}

.custom_add_to_cart.added:hover {
    background-color: #219d55 !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Zubehör Feed Styles */
.accessories-feed {
    margin: 2em 0;
}

.accessories-feed-title {
    margin-bottom: 1em;
    font-size: 1.2em;
    font-weight: bold;
}

.accessories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.accessory-item {
    text-align: center;
}

.accessory-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5em;
}

.accessory-item .price {
    color: #000;
    font-weight: bold;
    margin: 0.5em 0;
}

.accessory-item .button {
    display: inline-block;
    padding: 0.5em 1em;
    text-decoration: none;
    background-color: #000;
    color: #fff;
    border-radius: 3px;
}

.accessory-item .button:hover {
    background-color: #333;
} 