/* DSQ Frontend Styles */
.dsq-container {
    position: relative;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
}

.dsq-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0.1;
    z-index: 0;
    display: none;
}

.dsq-content {
    position: relative;
    z-index: 1;
}

.dsq-header {
    margin-bottom: 20px;
    text-align: center;
}

.dsq-main-title {
    margin: 0 0 10px 0;
}

.dsq-subtitle {
    margin: 0;
    color: #555;
    font-size: 1.1em;
}

.dsq-form-group {
    margin-bottom: 15px;
}

.dsq-dims-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.dsq-dims-group .dsq-form-group {
    flex: 1;
    margin-bottom: 0;
}

.dsq-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.dsq-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.dsq-input-wrapper {
    display: flex;
    align-items: center;
}

.dsq-input-wrapper .dsq-input {
    flex: 1;
    min-width: 0;
}

.dsq-unit-label {
    margin-left: 10px;
    font-weight: bold;
    white-space: nowrap;
}

/* --- Opsiyonlar (Yeni Kart Tasarımı) --- */
.dsq-options-section {
    margin-bottom: 20px;
}

.dsq-opt-title {
    margin: 15px 0 10px;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.dsq-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive Grid */
    gap: 15px;
}

.dsq-opt-card {
    display: block;
    position: relative;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #fff;
}

.dsq-opt-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Gizli Input */
.dsq-opt-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Seçili Durum */
.dsq-opt-input:checked + .dsq-opt-inner {
    background-color: #f0f7fc;
    border-color: #0073aa;
}

.dsq-opt-input:checked + .dsq-opt-inner::after {
    content: '\2713'; /* Checkmark */
    position: absolute;
    top: 5px;
    right: 5px;
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

.dsq-opt-inner {
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.dsq-opt-img {
    width: 100%;
    height: 120px;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsq-opt-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.dsq-opt-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* İçeriği alta it */
}

.dsq-opt-label {
    font-weight: 600;
    font-size: 0.95em;
}

.dsq-opt-price {
    font-size: 0.9em;
    color: #0073aa;
    font-weight: bold;
    background: #eef;
    padding: 2px 6px;
    border-radius: 4px;
}

.dsq-opt-tooltip {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    line-height: 1.3;
}

/* --- Slider Stilleri (Frontend) --- */
.dsq-slider-container { 
    position: relative; 
    width: 100%; 
    max-width: 100%; 
    margin-bottom: 20px; 
    overflow: hidden; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.dsq-slider-wrapper { 
    display: flex; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

.dsq-slide { 
    min-width: 100%; 
    box-sizing: border-box; 
    position: relative; 
}

.dsq-slide-img { 
    width: 100%; 
    height: auto; 
    max-height: 600px; 
    object-fit: cover; 
    display: block; 
}

.dsq-slide-caption { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0)); 
    color: #fff; 
    padding: 20px 15px; 
    text-align: center; 
    font-weight: 600; 
    font-size: 1.1em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.dsq-slider-nav { 
    position: absolute; 
    top: 50%; 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    transform: translateY(-50%); 
    pointer-events: none; 
    padding: 0 10px;
    box-sizing: border-box;
}

.dsq-slider-btn { 
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.4); 
    cursor: pointer; 
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    pointer-events: auto; 
    transition: all 0.3s ease; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dsq-slider-btn:hover { 
    background: rgba(255, 255, 255, 0.9); 
    color: #333;
    transform: scale(1.1);
}

/* Ok İkonları (CSS ile) */
.dsq-slider-btn.prev::before { content: '\2039'; font-size: 24px; line-height: 1; margin-right: 2px; margin-top: -2px; } /* Sol Ok */
.dsq-slider-btn.next::before { content: '\203A'; font-size: 24px; line-height: 1; margin-left: 2px; margin-top: -2px; } /* Sağ Ok */
.dsq-slider-btn.prev, .dsq-slider-btn.next { font-size: 0; } /* Metni gizle */


/* --- Image Box Stilleri (Frontend) --- */
.dsq-image-box-container { margin-bottom: 20px; text-align: center; }
.dsq-image-box-img { max-width: 100%; height: auto; max-height: 400px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* --- Butonlar ve Sonuç --- */
.dsq-btn {
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dsq-btn:hover {
    background-color: #005a87;
}

.dsq-btn.secondary {
    background-color: #333;
}
.dsq-btn.secondary:hover {
    background-color: #111;
}

.dsq-result-box {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: none;
}

.dsq-price-info, .dsq-total-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dsq-unit-price-label, .dsq-total-label {
    font-size: 1em;
    color: #666;
}

.dsq-unit-price {
    font-size: 1.1em;
    color: #777;
    font-weight: 500;
}

.dsq-total-label {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.dsq-total-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #0073aa;
}

.dsq-mail-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.dsq-mail-section h4 {
    margin-top: 0;
    text-align: center;
}

.dsq-msg {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.dsq-msg.success {
    background-color: #e7f5e8;
    color: #2d6a34;
}

.dsq-msg.error {
    background-color: #fbeaea;
    color: #a94442;
}

/* Responsive */
@media (max-width: 480px) {
    .dsq-dims-group {
        flex-direction: column;
        gap: 0;
    }
    .dsq-dims-group .dsq-form-group {
        margin-bottom: 15px;
    }
    .dsq-dims-group .dsq-form-group:last-child {
        margin-bottom: 0;
    }
    .dsq-options-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
}
