@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gilroy', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0f0f0f; /* siyah vari arkaplan */
    color: #000000; /* tüm #e5e5e5 yerine siyah */
}

.container {
    max-width: 700px;
    margin: 20px auto;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Banner */
.banner-wrapper{
    width:100%;
}
.banner-item img{
    width:100%;
    display:block;
}

.header {
    background-color: white;
    color: #111;
    padding: 22px 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.header::before {
    content: "🔒";
    font-size: 22px;
}

.section-title {
    text-align: left;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    padding: 14px 0 10px;
    letter-spacing: 0.3px;
    text-transform: none;
    border-top: none;
    border-bottom: 1px solid #f0f0f0;
    margin: 6px 0 14px;
}

.products-section {
    padding: 18px 20px 20px;
}

/* İletişim formu ile değerlendirme alanı arasında boşluk olmasın */
.form-section{margin-bottom:0}

/* Ürün değerlendirmeleri konteyner hizası */
.reviews-section{
  padding:18px 20px; /* formdaki iç boşlukla aynı */
  margin-top:0;      /* dış boşluk sıfır */
}

.product-item {
    border: 3px solid #ff6633;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    background-color: #fff9f5;
}

.product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-quantity {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    color: #ff6633;
    margin: 8px 0;
}

.product-description {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffd166; /* fiyat rengi belirgin */
}

.original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.current-price {
    font-size: 28px;
    font-weight: bold;
    color: #ffd166; /* koyu zeminde öne çıkan fiyat */
}

.price-unit {
    font-size: 13px;
    color: #999;
}

.cargo-badge {
    display: inline-block;
    background-color: #1abc9c;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.form-section {
    padding: 18px 0;
    background-color: white;
    margin: 0;
    border-radius: 0;
}

/* form-section içindeki grup genişliği ve tek kolon hissi */
.form-section .form-group {
    width: 100%;
}

.form-section .form-group + .form-group {
    margin-top: 10px;
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 600;
    color: #666;
    margin-bottom: 0;
    font-size: 14px;
    flex-shrink: 0;
    width: auto;
    position: relative;
    z-index: 10;
}

.form-label-icon {
    width: 44px;
    height: auto;
    min-height: 48px;
    background-color: #f5f5f5;
    color: #ff6a2a;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-right: 1px solid #e6e6e6;
}

/* Yeni ikon alanı (label yok, sadece ikon kutusu) */
.form-icon {
    width: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #666;
    border-right: 1px solid #e6e6e6;
    font-size: 16px;
    line-height: 1;
}

.form-icon i {
    font-size: 16px;
    color: #555;
}

/* Telefon: +90 ikon alanı içinde, tek parça hissi */
.form-icon--phone {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #333;
}

.form-icon__code {
    display: inline-block;
    transform: translateY(0.5px);
}

.form-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.form-textarea {
    height: 92px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
    min-height: 92px;
    max-height: 160px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9a9a9a;
}

.form-select:disabled,
.form-input:disabled,
.form-textarea:disabled {
    background-color: #fafafa;
    color: #999;
}

.form-input,
.form-select,
.form-textarea {
    flex: 1;
    height: 48px;
    padding: 12px 14px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    transition: box-shadow 0.2s, background-color 0.2s;
    background-color: #fff;
    color: #222;
}

/* intl-tel-input: tek parça input hissi */
.form-group--phone .iti {
    flex: 1;
    display: flex;
}

.form-group--phone .iti__flag-container {
    position: static;
}

.form-group--phone .iti__selected-flag {
    height: 48px;
    padding: 0 10px 0 12px;
    border-right: 1px solid #e6e6e6;
    background: #fff;
    cursor: pointer;
}

.form-group--phone .iti__arrow {
    margin-left: 8px;
    border-top-color: #999;
}

.form-group--phone .iti__selected-dial-code {
    font-size: 13px;
    color: #444;
    font-weight: 700;
}

.form-group--phone .iti input[type="tel"] {
    height: 48px;
    border: none;
    outline: none;
    padding-left: 12px !important;
    width: 100%;
}

.form-group--phone .iti input[type="tel"]:focus {
    box-shadow: none;
}

.form-group--phone:focus-within {
    box-shadow: 0 0 0 1px rgba(255, 106, 42, 0.35);
}

/* intl-tel-input dropdown görünümü düzeltme */
.form-group--phone .iti {
    position: relative;
}

.form-group--phone .iti__dropdown-content {
    z-index: 9999;
}

/* Açılır liste default kapalı olmalı; sadece açıkken göster */
.form-group--phone .iti__country-list {
    display: none;
}

/* plugin, açıkken inline style ile display:block atıyor; biz sadece görünümünü yönetiyoruz */

.form-group--phone .iti__country-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    width: min(320px, calc(100vw - 40px));
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.form-group--phone .iti__country {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.form-group--phone .iti__country:hover,
.form-group--phone .iti__country.iti__highlight {
    background: #f7f7f7;
}

.form-group--phone .iti__country-name {
    font-size: 13px;
    color: #222;
}

.form-group--phone .iti__dial-code {
    margin-left: auto;
    font-size: 12px;
    color: #666;
    font-weight: 700;
}

.form-group--phone .iti__divider,
.form-group--phone .iti__bullet {
    display: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 106, 42, 0.35);
}

.form-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.country-code {
    background-color: #f9f9f9;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
}

.phone-input {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 12px;
    border: 2px solid #ffd166;
    border-radius: 10px;
    background: #1a1a1a; /* dark uyum */
    color: #ffd166;
}

.radio-option input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #ff6a2a;
}

.radio-option label {
    cursor: pointer;
    font-size: 14px;
    color: #ffd166;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #ff6633;
}

.checkbox-group label {
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #ff6a2a;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.05s, background-color 0.2s, box-shadow 0.2s;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 12px 22px rgba(255, 106, 42, 0.25);
}

.submit-btn:hover {
    background-color: #f25f22;
    box-shadow: 0 14px 26px rgba(255, 106, 42, 0.3);
}

.submit-btn:active {
    transform: translateY(1px);
}

.footer {
    background-color: #3a3a3a;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

/* Yorum & yıldız stilleri (önyüz) */
.rating .stars,
.review-stars {
  color: #f5b50a; /* sarı */
  font-size: 22px;
}
.review-item{padding:10px 0;border-bottom:1px solid #eee}
.review-text{font-size:14px;margin-top:4px;color:#333}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #ccc;
}

.footer-icon-img {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.footer-links {
    font-size: 12px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-links a {
    color: #1abc9c;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.payment-icon {
    width: 35px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.footer-copyright {
    font-size: 11px;
    color: #999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

/* Ünler (anasayfa) */
.unler-section {
    padding: 0 20px 12px;
}

.unler-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}

.un-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

.un-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f4f4;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.un-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.un-avatar-fallback {
    font-size: 22px;
    color: #999;
}

.un-name {
    font-weight: 900;
    font-size: 14px;
    color: #111;
    margin-bottom: 4px;
}

.un-text {
    font-size: 13px;
    color: #555;
    line-height: 1.45;
}

/* Admin Panel Styles */

/* Admin select modernizasyonu */
.admin-container select{
  appearance:none;
  padding:10px 36px 10px 12px;
  border:1px solid #d0d0d0;
  border-radius:10px;
  background:#fff;
  font-size:13px;
  cursor:pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #999 50%),
    linear-gradient(135deg, #999 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
  transition:border-color .2s, box-shadow .2s;
}

.admin-container select:focus{
  outline:none;
  border-color:#ff6a2a;
  box-shadow:0 0 0 3px rgba(255,106,42,.15);
}
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.admin-header {
    background-color: #3a3a3a;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-size: 24px;
    font-weight: bold;
}

.logout-btn {
    background-color: #d9534f;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #c9302c;
}

.admin-content {
    padding: 20px;
}

/* Siparişler tablosu durum select özel stil */
.orders-table select{
  min-width:150px;
  height:36px;
  padding:0 40px 0 14px;
  font-size:13px;
  font-weight:700;
  border-radius:12px;
  border:1px solid #e6e6e6;
  background:#f9fafb;
  color:#333;
  appearance:none;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
  transition:background-color .2s,border-color .2s,box-shadow .2s,transform .1s;
}

.orders-table select:hover{
  background-color:#fff;
  border-color:#ff6a2a;
}

.orders-table select:focus{
  outline:none;
  border-color:#ff6a2a;
  box-shadow:0 0 0 3px rgba(255,106,42,.25);
}

.orders-table select:active{
  transform:translateY(1px);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.orders-table thead {
    background-color: #f5f5f5;
}

.orders-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.orders-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.orders-table tbody tr:hover {
    background-color: #f9f9f9;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-processing {
    background-color: #cfe2ff;
    color: #084298;
}

.status-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #842029;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-view {
    background-color: #0066cc;
    color: white;
}

.btn-view:hover {
    background-color: #0052a3;
}

.btn-edit {
    background-color: #ff6633;
    color: white;
}

.btn-edit:hover {
    background-color: #e55a2b;
}

.btn-delete {
    background-color: #d9534f;
    color: white;
}

.btn-delete:hover {
    background-color: #c9302c;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.order-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: 600;
    color: #666;
}

.detail-value {
    color: #333;
}

.no-orders {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-orders-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* Admin tabs */
.admin-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

.admin-tab--active {
    border-color: #ff6a2a;
    color: #ff6a2a;
    box-shadow: 0 6px 18px rgba(255, 106, 42, 0.15);
}

@media (max-width: 768px) {
    .container,
    .admin-container {
        margin: 10px;
    }

    .product-item {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        height: 150px;
    }

    .orders-table {
        font-size: 12px;
    }

    .orders-table th,
    .orders-table td {
        padding: 8px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-small {
        width: 100%;
    }
}
