/**
 * OKR Integration - Simple Styles
 * بدون Grid - فقط Flexbox و Float
 */

/* ========== لیست پکیج‌ها ========== */
.PlaceOfPakcage {
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* ✅ FIX: لیست ساده هم فلکس شد */
.ListOfPackage {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* کارت پکیج */
.ListOfPackage .Item_package,
.ListOfPackageGride .Item_package {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    transition: all 0.3s ease;
    position: relative;
    /* ✅ FIX اصلی */
    width: calc(33% - 20px);
    min-width: 260px;
    box-sizing: border-box;
}

.Item_package:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.Item_package.discount::before {
    content: attr(data-discount);
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff5722;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 1;
}

.Item_package .thumb {
    height: 140px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 12px;
}

.Item_package h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
    color: #333;
}

.Item_package .listOfFeater {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.Item_package .listOfFeater li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.Item_package .listOfFeater li:last-child {
    border-bottom: none;
}

.Item_package .listOfFeater li span {
    color: #666;
}

.Item_package .listOfFeater li b {
    color: #4CAF50;
    font-weight: 600;
}

.CTA_Order {
    display: block;
    text-align: center;
    background: #4CAF50;
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.CTA_Order:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.CTA_Order i {
    margin-left: 5px;
}

/* Grid با Flexbox */
.ListOfPackageGride {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    margin: -10px;
}

/* Owl Carousel */
.owl-carousel .owl-item {
    padding: 5px;
}

/* ========== صفحه خرید ========== */
.okr-buy-wrapper {
    padding: 30px 15px;
    background: #f5f5f5;
    min-height: 100vh;
}

.buy-container {
    max-width: 1200px;
    margin: 0 auto;
}

.buy-container:after {
    content: "";
    display: table;
    clear: both;
}

.buy-selection {
    float: left;
    width: 65%;
    padding-right: 25px;
    box-sizing: border-box;
}

.buy-invoice {
    float: right;
    width: 35%;
    box-sizing: border-box;
}

.selection-card,
.invoice-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #4CAF50;
}

.section-title i {
    margin-left: 10px;
    color: #4CAF50;
    font-size: 26px;
}

.subsection-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin: 25px 0 15px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-right: 4px solid #4CAF50;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label i {
    margin-left: 8px;
    color: #4CAF50;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.item-selector {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.item-selector:hover {
    background: #f0f0f0;
}

.invoice-details {
    margin: 15px 0;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.invoice-row:last-child {
    border-bottom: none;
}

.row-label {
    font-size: 13px;
    color: #666;
}

.row-value {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.discount-row .row-value {
    color: #f44336;
}

.total-row {
    background: #e8f5e9;
    padding: 15px 12px !important;
    border-radius: 6px;
    margin-top: 10px;
}

.total-row .row-label,
.total-row .row-value {
    font-size: 18px;
    color: #4CAF50;
}

.invoice-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 12px 0;
}

.btn-submit-purchase {
    width: 100%;
    padding: 14px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-submit-purchase:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-submit-purchase i {
    margin-left: 8px;
    font-size: 20px;
}

/* ========== صفحه تایید ========== */
.okr-verify-success {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
}

.okr-verify-success h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.okr-verify-success > p {
    color: #666;
    margin-bottom: 25px;
}

.order-details {
    text-align: right;
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.order-details h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    color: #666;
    font-weight: 600;
}

.detail-row span:last-child {
    color: #4CAF50;
    font-weight: bold;
}

.btn-back-home {
    display: inline-block;
    padding: 12px 35px;
    background: #4CAF50;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: #45a049;
}

.okr-notice,
.okr-error {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
}

.okr-notice {
    background: #e3f2fd;
    color: #1976d2;
    border-right: 4px solid #2196F3;
}

.okr-error {
    background: #ffebee;
    color: #c62828;
    border-right: 4px solid #f44336;
}

/* ========== Responsive ========== */

/* Tablet */
@media (max-width: 1024px) {
    .ListOfPackage .Item_package,
    .ListOfPackageGride .Item_package {
        width: calc(50% - 20px);
    }
    
    .buy-selection {
        width: 60%;
    }
    
    .buy-invoice {
        width: 40%;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .PlaceOfPakcage {
        padding: 15px 5px;
    }
    
    .ListOfPackageGride {
        padding: 10px;
    }
    
    .ListOfPackage .Item_package,
    .ListOfPackageGride .Item_package {
        width: calc(50% - 20px);
        min-width: 200px;
    }
    
    .buy-selection,
    .buy-invoice {
        float: none;
        width: 100%;
        padding: 0;
        margin-bottom: 20px;
    }
    
    .Item_package {
        padding: 12px;
        margin: 5px;
    }
    
    .Item_package h2 {
        font-size: 15px;
    }
    
    .Item_package .thumb {
        height: 120px;
    }
    
    .Item_package .listOfFeater li {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .CTA_Order {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .selection-card,
    .invoice-card {
        padding: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .ListOfPackage .Item_package,
    .ListOfPackageGride .Item_package {
        width: 100%;
        margin: 5px 0;
    }
    
    .Item_package .thumb {
        height: 100px;
    }
    
    .Item_package h2 {
        font-size: 14px;
    }
}

/* Owl Carousel */
.owl-theme .owl-nav button {
    background: white !important;
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.owl-theme .owl-nav button:hover {
    background: #4CAF50 !important;
    color: white !important;
}

.owl-theme .owl-dots .owl-dot span {
    background: #e0e0e0;
    width: 10px;
    height: 10px;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: #4CAF50;
}

/* Clear floats */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}
