/* Modal Stilleri */
.ps-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.ps-modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.ps-modal-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ps-modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
}

.ps-modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.ps-modal-close:hover {
    color: #333;
}

.ps-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.ps-modal-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-radius: 0 0 10px 10px;
    text-align: right;
}

.ps-modal-footer button {
    margin-left: 10px;
}

/* Varyasyon Select Stilleri */
.variations select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    margin-bottom: 10px;
}

.variations label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

/* Geri kalan CSS aynı kalacak */
.ps-wrapper {
    width: 100% !important;
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ps-progress-container { 
    margin-bottom: 30px; 
}
.ps-progress-bar { 
    height: 8px; 
    background: #eee; 
    border-radius: 4px; 
    overflow: hidden; 
    margin-top: 5px; 
}
.ps-progress-fill { 
    height: 100%; 
    background: #4caf50; 
    transition: width 0.4s ease; 
}
.ps-step-info { 
    font-weight: bold; 
    color: #555; 
    text-align: center;
}

.ps-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ps-product-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ps-product-card:hover {
    border-color: #4caf50;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ps-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.ps-img-wrap img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}
.ps-product-card h4 { 
    font-size: 15px; 
    margin: 10px 0; 
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ps-select-btn, .ps-select-variable-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
}

#ps-summary-area {
    background: #fdfdfd;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-sizing: border-box;
}
.ps-summary-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.ps-summary-item img { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
    margin-right: 15px; 
    border-radius: 4px; 
}
.ps-cart-totals {
    margin-top: 20px;
    text-align: right;
    font-size: 16px;
}
.ps-cart-totals .total { 
    font-size: 20px; 
    font-weight: bold; 
    color: #333; 
    margin-top: 10px; 
}
.ps-coupon-area {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 5px;
    text-align: right;
    box-sizing: border-box;
}
#ps-coupon-message { 
    font-size: 13px; 
    margin-top: 5px; 
}

.ps-product-card .ps-stock-info {
    font-size: 11px;
    margin: 5px 0;
    font-weight: bold;
    min-height: 18px;
}

.ps-no-products {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    grid-column: 1 / -1;
    box-sizing: border-box;
}

.ps-no-products p {
    margin: 10px 0;
    color: #666;
}

.ps-no-products p:first-child {
    font-size: 16px;
    color: #dc3545;
    font-weight: bold;
}

.ps-selection-tracker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px; 
    margin-bottom: 30px;
}

.ps-tracker-box {
    width: 70px;
    height: 70px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    background: #f9f9f9;
    color: #bbb;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-sizing: border-box;
}

.ps-tracker-box.filled {
    border: 2px solid #4caf50;
    background: #fff;
    padding: 2px;
}

.ps-tracker-box.active-step {
    border-color: #007cba;
    background: #eef7fc;
}

.ps-tracker-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.ps-tracker-plus {
    font-size: 24px;
    color: #ccc;
    font-weight: bold;
}

.ps-remove-btn {
    position: absolute;
    top: -10px;  
    right: -10px; 
    background: #e74c3c;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: none;
    z-index: 100; 
    border: 2px solid #fff; 
    font-weight: bold;
}

.ps-tracker-box.filled:hover .ps-remove-btn {
    display: block;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .ps-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ps-product-card {
        padding: 12px;
    }
    
    .ps-img-wrap img {
        max-height: 120px;
    }
    
    .ps-product-card h4 {
        font-size: 14px;
        height: 38px;
    }
    
    #ps-summary-area {
        padding: 20px 15px;
    }
    
    .ps-progress-container {
        margin-bottom: 25px;
    }
    
    .ps-step-info {
        font-size: 15px;
    }

    .ps-tracker-box {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
    .ps-tracker-plus {
        font-size: 18px;
    }
    
    .ps-modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

@media (max-width: 600px) {
    .ps-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ps-product-card {
        padding: 10px;
    }
    
    .ps-img-wrap img {
        max-height: 110px;
    }
    
    .ps-product-card h4 {
        font-size: 13px;
        height: 36px;
        margin: 8px 0;
    }
    
    .ps-select-btn, .ps-select-variable-btn {
        padding: 8px;
        font-size: 14px;
    }
    
    .ps-product-card .ps-stock-info {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .ps-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ps-product-card {
        padding: 8px;
    }
    
    .ps-img-wrap img {
        max-height: 100px;
    }
    
    .ps-product-card h4 {
        font-size: 12px;
        height: 34px;
        margin: 6px 0;
    }
    
    .ps-select-btn, .ps-select-variable-btn {
        padding: 7px;
        font-size: 13px;
    }
    
    .ps-product-card .ps-stock-info {
        font-size: 9px;
        margin: 4px 0;
    }
    
    .ps-step-info {
        font-size: 14px;
    }
    
    .ps-progress-bar {
        height: 6px;
    }
}

@media (max-width: 360px) {
    .ps-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .ps-product-card {
        padding: 6px;
    }
    
    .ps-img-wrap img {
        max-height: 90px;
    }
    
    .ps-product-card h4 {
        font-size: 11px;
        height: 32px;
        margin: 4px 0;
    }
    
    .ps-select-btn, .ps-select-variable-btn {
        padding: 6px;
        font-size: 12px;
    }
    
    .ps-product-card .ps-stock-info {
        font-size: 8px;
    }
}

@media (min-width: 1000px) {
    .ps-wrapper {
        padding: 0;
    }
}

@media (min-width: 769px) and (max-width: 999px) {
    .ps-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .ps-wrapper {
        padding: 0 15px;
    }
}
/* Varyasyon Select Stilleri */
.variations select {
    width: 100%;
    padding: 12px 15px;
    padding-right: 35px; /* Ok işareti için sağ boşluk */
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 10px center;
    background-size: 16px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

.variations select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.variations select:hover {
    border-color: #999;
}

.variations select option {
    padding: 10px;
    background: #fff;
    color: #333;
}

.variations select option:first-child {
    color: #999;
}

.variations label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Internet Explorer için ok işareti düzeltmesi */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .variations select {
        background: #fff;
        padding-right: 15px;
    }
}