/* Product Options Styles - FINALNA VERZIJA V2 */

/* GLAVNA SEKCIJA */
.pdo-product-options {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 30px;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* HEADER SA NASLOVOM I DEMO BUTTONOM */
.pdo-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* NASLOV PROIZVODA - LEVO */
.pdo-product-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-align: left;
}

/* DEMO BUTTON - DESNO */
.pdo-demo-button {
    background: transparent;
    border: 2px solid #999;
    color: #666;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.pdo-demo-button:hover {
    background: #f5f5f5;
    border-color: #666;
    color: #333;
    transform: translateY(-1px);
    text-decoration: none;
}

/* GLAVNA CENA NA VRHU */
.pdo-main-price {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgb(122,1,1) 0%, rgb(255,60,60) 100%);
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(122, 1, 1, 0.25);
}

.pdo-price-label-main {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.pdo-price-value-main {
    font-size: 36px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.pdo-price-breakdown {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* NASLOV OPCIJA */
.pdo-options-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* OPCIJE LISTA */
.pdo-option-item {
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdo-option-item:hover {
    border-color: #7a0101;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 1, 1, 0.1);
}

.pdo-option-item:last-child {
    margin-bottom: 0;
}

/* LEVA STRANA - Checkbox i naziv */
.pdo-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.pdo-option-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #7a0101;
    flex-shrink: 0;
}

.pdo-option-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

/* DESNA STRANA - Cena */
.pdo-option-price {
    font-size: 16px;
    font-weight: 600;
    color: #7a0101;
    white-space: nowrap;
    margin-left: 20px;
}

/* Lista opcija - donji margin */
.pdo-options-list {
    margin-bottom: 0;
}

/* CHECKED STATE */
.pdo-option-item:has(.pdo-option-checkbox:checked) .pdo-option-name {
    color: #7a0101;
    font-weight: 600;
}

.pdo-option-item:has(.pdo-option-checkbox:checked) {
    background: #fff5f5;
    border-color: #7a0101;
    border-width: 2px;
}

/* DODAJ U KORPU BUTTON - UNUTAR BOX-A */
.pdo-add-to-cart-button {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white !important;
    background: linear-gradient(135deg, rgb(122,1,1) 0%, rgb(255,60,60) 100%) !important;
    border: none !important;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(122, 1, 1, 0.2);
    text-align: center;
    display: block;
}

.pdo-add-to-cart-button:hover {
    background: linear-gradient(135deg, rgb(102,1,1) 0%, rgb(235,40,40) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 1, 1, 0.4);
    color: white !important;
}

.pdo-add-to-cart-button:active {
    transform: translateY(0);
}

/* ANIMACIJE */
@keyframes priceUpdate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.price-animate {
    animation: priceUpdate 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breakdown-animate {
    animation: slideIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .pdo-product-options {
        padding: 20px;
        margin: 20px 0;
    }
    
    .pdo-product-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .pdo-product-title {
        font-size: 22px;
    }
    
    .pdo-demo-button {
        align-self: stretch;
        text-align: center;
    }
    
    .pdo-main-price {
        padding: 20px;
    }
    
    .pdo-price-value-main {
        font-size: 28px;
    }
    
    .pdo-options-title {
        font-size: 18px;
    }
    
    .pdo-option-item {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pdo-option-left {
        width: 100%;
    }
    
    .pdo-option-name {
        font-size: 14px;
    }
    
    .pdo-option-price {
        font-size: 14px;
        margin-left: 34px;
    }
    
    .pdo-add-to-cart-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Accessibility */
.pdo-option-checkbox:focus {
    outline: 2px solid #7a0101;
    outline-offset: 2px;
}

.pdo-option-name:focus {
    outline: 2px solid #7a0101;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .pdo-product-options {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .pdo-demo-button {
        display: none;
    }
}

/* Sakrij originalni WooCommerce Add to Cart button */
form.cart > .single_add_to_cart_button {
    display: none !important;
}
