/* style.css - TAM REVİZE EDİLMİŞ VE BİRLEŞTİRİLMİŞ STİL DOSYASI */

/* ==================== RENK DEĞİŞKENLERİ ==================== */
:root {
    --primary-color: #FF5722; /* Ana Tema Rengi (Turuncu/Kırmızı) */
    --secondary-color: #4CAF50; /* Tamamlayıcı Renk (Yeşil - Sepet/Başarı) */
    --background-dark: #222;
    --text-dark: #1a1a1a;
    --text-light: #fff;
    --plate-strip-bg: #003399; /* TR Şerit Mavi */
    --plate-strip-text: #FFD700; /* Yıldız Sarı */
    --card-bg: rgba(255, 255, 255, 0.95); /* Yarı şeffaf beyaz kart */
    --shadow-default: 0 4px 12px rgba(0, 0, 0, 0.1);
    --error-color: #e74c3c;
}

/* ==================== GENEL AYARLAR ==================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    background: url('https://cdn.pixabay.com/photo/2023/02/05/21/34/porsche-7770665_1280.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    padding-top: 60px; /* Kargo banner yüksekliği için boşluk */
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Hafif beyaz kaplama */
    pointer-events: none;
    z-index: 0;
}
body > * { position: relative; z-index: 1; }
main { flex-grow: 1; }

/* ==================== HEADER & PLAKA ÖN İZLEME ==================== */
header {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 80px;
    position: relative;
    z-index: 1000;
}
#plate {
    display: flex;
    align-items: center;
    height: 45px;
    border: 4px solid var(--text-light);
    border-radius: 5px;
    font-family: 'Times New Roman', serif;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    background: var(--text-light);
    color: var(--text-dark);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    padding: 10px 22px;
    cursor: pointer;
}
.plate-strip {
    height: 45px;
    width: 25px;
    background: var(--plate-strip-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    color: var(--plate-strip-text);
    border-radius: 3px 0 0 3px;
    margin-right: 5px;
}
#plate .plate-text {
    font-size: 28px;
    font-weight: 800;
}

/* ==================== WHATSAPP BUTONU - BÜYÜK ==================== */
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: #25D366;
    color: white !important;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}
.whatsapp-btn:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}
.whatsapp-icon {
    width: 32px;
    height: 32px;
}

/* ==================== NAVİGASYON ==================== */
nav {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}
nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}
nav a:hover { color: var(--primary-color); }

/* ==================== SECTION GENEL ==================== */
section {
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 1200px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-default);
}
h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: bold;
}

/* ==================== KARGO BANNER ==================== */
.kargo-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 0;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    animation: glow 2s infinite alternate;
    letter-spacing: 1px;
}
@keyframes glow {
    from { box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4); }
    to { box-shadow: 0 6px 25px rgba(231, 76, 60, 0.7); }
}

/* ==================== KAYAN GÖRSEL ŞERİDİ (Marquee) ==================== */
.gallery-marquee {
    width: 100%;
    overflow: hidden;
    background: #111;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.marquee-track {
    display: flex;
    animation: kaydir 28s linear infinite;
    gap: 25px;
}
.marquee-track img {
    height: 110px;
    width: auto;
    border-radius: 16px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 6px 18px rgba(255,87,34,0.5);
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.4s ease;
    cursor: pointer;
}
.marquee-track img:hover {
    transform: scale(1.2) translateY(-8px);
    box-shadow: 0 15px 35px rgba(255,87,34,0.8);
    border-color: #fff;
    z-index: 5;
}
@keyframes kaydir {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.gallery-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* ==================== ÜRÜN GALERİSİ ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px;
}
.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.item-info {
    padding: 14px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.item-info h3 {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 600;
    color: #222;
}
.item-info p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}
.gallery-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, var(--primary-color), #E64A19);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 0 12px 12px;
    transition: opacity 0.3s;
}
.gallery-btn:hover {
    opacity: 0.9;
}

/* ==================== PLAKA TİPLERİ/BİLGİ KUTULARI ==================== */
.product-info-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.product-info-box {
    background: var(--text-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 300px;
    text-align: center;
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}
.product-info-box:hover {
    transform: translateY(-5px);
}
.product-info-box h3 {
    color: var(--background-dark);
    margin: 0 0 15px;
    font-size: 1.4em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.product-info-box p {
    color: #555;
    line-height: 1.5;
}

/* ==================== MÜŞTERİ YORUMLARI ==================== */
.reviews-marquee {
    overflow: hidden;
    width: 90%;
    max-width: 500px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 0;
}
.review-track {
    display: flex;
    animation: scroll 18s linear infinite;
    gap: 20px;
}
.review {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 380px;
    min-height: 150px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.review-text {
    margin: 0;
    font-style: italic;
    flex-grow: 1;
    line-height: 1.5;
}
.review-author {
    text-align: right;
    font-weight: bold;
    color: #555;
    margin: 0;
    font-size: 0.9em;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* YILDIZ SİSTEMİ */
.stars {
    position: relative;
    display: inline-block;
    font-size: 1.3em;
    color: #ddd;
    margin-bottom: 8px;
}
.stars::before {
    content: '★★★★★';
    color: #ddd;
    letter-spacing: 3px;
}
.stars::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    color: gold;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 3px;
}
.stars[data-rating="1"]::after { content: '★'; }
.stars[data-rating="2"]::after { content: '★★'; }
.stars[data-rating="3"]::after { content: '★★★'; }
.stars[data-rating="4"]::after { content: '★★★★'; }
.stars[data-rating="5"]::after { content: '★★★★★'; }

/* ==================== İLETİŞİM ==================== */
#contact { text-align: center; }
#contactForm {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-default);
}
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}
#contactForm button[type="submit"] {
    width: 100%;
    background: var(--secondary-color);
    color: var(--text-light);
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
#contactForm button[type="submit"]:hover {
    background: #45a049;
}
#contactMessageInfo {
    margin-top: 15px;
    font-weight: bold;
}

/* ==================== HİZMET VE GÜVEN ÖZELLİKLERİ ==================== */
.trust-features {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 50px 20px;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    margin: 40px 0;
    /* 'as.jpg' dosyası yüklendiği için direkt kullanıldı */
    background-image: url('as.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}
.trust-features::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}
.feature-item {
    flex-basis: 30%;
    max-width: 300px;
    z-index: 2;
    padding: 10px;
}
.feature-item h3 {
    color: #ff8c00;
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 900;
}
.feature-item p {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.4;
}

/* ==================== FOOTER ==================== */
footer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background: #f2f2f2;
    margin-top: 30px;
}
.footer-content p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

/* ==================== SEPET BUTONU & TOAST ==================== */
#goToCartBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    z-index: 900;
}
#goToCartBtn:hover { background: #E64A19; }
.cart-count {
    background: var(--secondary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-light);
}
.cart-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    transform: translateY(20px);
    z-index: 1000;
}
.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== MODAL (Ürün Özelleştirme) ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}
.close:hover { color: #000; }

.modal-label {
    display: block;
    font-weight: bold;
    margin: 15px 0 8px;
    color: #2c3e50;
    font-size: 1.1em;
    text-align: left;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1em;
    text-transform: uppercase;
}

.color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
    text-align: left;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.color-option:hover {
    background: #f0f8ff;
}

.color-option input:checked + .color-box {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.5);
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #ddd;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
    text-align: left;
}

.options-grid label {
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.add-to-cart-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    font-size: 1.1em;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background: #1e8449;
    transform: translateY(-1px);
}

/* ==================== SEPET SAYFASI ==================== */
.cart-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.cart-items {
    flex: 2;
    min-width: 300px;
}
.cart-summary {
    flex: 1;
    min-width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cart-total {
    font-size: 22px;
    font-weight: bold;
    color: #e63946;
    margin: 15px 0;
    text-align: center;
}
.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.cart-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
#continueShopping, #continueShoppingBottom {
    background: #95a5a6;
    color: white;
}
#continueShopping:hover, #continueShoppingBottom:hover {
    background: #7f8c8d;
}
.checkout-btn {
    background: var(--primary-color);
    color: white;
}
.checkout-btn:hover { background: #E64A19; }

/* SEPET ÜRÜNÜ */
.cart-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Başlık ve fiyatın hizası */
    width: 100%;
    padding-right: 80px;
    box-sizing: border-box;
}
.item-name {
    font-weight: 600;
    font-size: 18px;
    color: #222;
    margin: 0;
    flex: 1;
}
.item-price {
    font-size: 20px;
    font-weight: bold;
    color: #e63946;
    margin: 0;
    white-space: nowrap;
}
.remove-item-btn {
    background: #d11a2a;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}
.remove-item-btn:hover {
    background: #b01624;
}

/* SEPET ÖZELLEŞTİRME DÜZENLEMESİ */
.cart-item-customize {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.plate-input-group label {
    display: block;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
    font-size: 15px;
}
.plate-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-sizing: border-box;
}
.cart-item-customize .options-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    justify-content: flex-start;
    text-align: left;
}
.cart-item-customize .options-row label {
    white-space: nowrap;
    padding: 2px 0;
    font-size: 14.5px;
}

.empty-cart-message {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 30px;
    font-size: 16px;
}

/* ==================== ADRES VE ÖDEME FORMU ==================== */
.address-form, .payment-method { margin-bottom: 20px; }
.address-form label {
    display: block;
    margin: 8px 0 4px;
    font-weight: bold;
    color: #333;
}
.address-form input,
.address-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 4px;
}
.address-form .row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.address-form .col {
    flex: 1;
}
.address-form .error {
    color: var(--error-color);
    font-size: 12.5px;
    margin-top: 4px;
    min-height: 18px;
    display: block;
}
/* Hata durumunda input/select kırmızı kenar */
.address-form input:invalid:focus,
.address-form select:invalid:focus,
.address-form textarea:invalid:focus {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* SELECT STİLLERİ (İL / İLÇE) */
.address-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: white;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.address-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
}
.address-form select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Ödeme yöntemi kutuları */
.payment-method > div {
    margin-top: 10px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Sipariş onay modalı */
#orderConfirmation {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
#orderConfirmation .modal-box {
    background: #E8F5E9;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
#orderConfirmation h4 {
    color: #27ae60;
    margin: 0 0 10px;
    font-size: 24px;
}
#orderConfirmation button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}


/* ==================== MOBİL UYUM ==================== */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item img { height: 180px; }
}
@media (max-width: 768px) {
    header { flex-direction: column; align-items: flex-start; }
    #plate { margin-bottom: 10px; }
    .whatsapp-btn {
        padding: 10px 16px;
        font-size: 14px;
        gap: 8px;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    .whatsapp-icon { width: 28px; height: 28px; }
    .wp-text { font-size: 14px; }
    
    .product-info-box, .feature-box { width: 100%; margin-bottom: 15px; }
    .review-track { animation: none; }
    .reviews-marquee, .review { width: 100%; }
    .marquee-track { animation-duration: 40s; gap: 15px; }
    .marquee-track img { height: 80px; }
    
    .cart-content { flex-direction: column; }
    .cart-item-customize, .options-row { grid-template-columns: 1fr; } /* Sepet opsiyonları alt alta */
    .cart-item-header {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
        gap: 8px;
    }
    .item-price { align-self: flex-end; }
    .remove-item-btn { position: static; margin-top: 10px; width: 100%; }

    .kargo-banner { font-size: 16px; padding: 12px 0; }
    body { padding-top: 70px; }
    
    .trust-features {
        flex-direction: column;
        padding: 30px 10px;
        margin: 20px 0;
    }
    .feature-item { margin: 15px 0; flex-basis: 100%; }
    
    .address-form .row { flex-direction: column; }
    .address-form select { font-size: 16px; padding: 12px; } /* iOS zoom engellemek için */
    
    .color-grid, .options-grid { grid-template-columns: 1fr; } /* Modal/Form gridleri mobil tek sütun */
    
    /* Mobil Admin Uyumu */
    .dashboard-stats { flex-direction: column; }
    .stat-card { margin-bottom: 10px; }
    /* Kart görünümündeki düzenlemeler (Eski Admin stili, tablo kullanılmazsa) */
    .order-header { flex-direction: column; align-items: flex-start; gap: 5px; }
    .order-total { align-self: flex-end; }
    .order-info-row { flex-direction: column; }
    .order-info-row strong { min-width: auto; }
    .order-footer { flex-direction: column; gap: 10px; align-items: stretch; }
    .status-select, .delete-order-btn { width: 100%; box-sizing: border-box; text-align: center; }
    .order-status-label { align-self: flex-start; }
    .message-header { flex-direction: column; align-items: flex-start; gap: 5px; }
}
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item img { height: 200px; }
}

/* ==================== ADMIN PANELİ STİLLERİ ==================== */

/* Genel Kart Stili (Tablo kullanılmadığında geçerli) */
.order-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.status-new { border-left: 5px solid #e67e22; }
.status-preparing { border-left: 5px solid #f1c40f; }
.status-shipped { border-left: 5px solid #3498db; }
.status-delivered { border-left: 5px solid #2ecc71; }

/* Admin Paneli Giriş Ekranı */
#loginOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 350px;
    text-align: center;
}
/* Diğer admin stil kuralları... */
#adminContent { display: none; padding-top: 20px; background: #f4f7f6; }
.dashboard-stats { display: flex; justify-content: space-around; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
/* ... (Diğer kart ve buton stilleri) ... */


/* ==================== TABLO (EXCEL) GÖRÜNÜMÜ İYİLEŞTİRMELERİ ==================== */
/* Siparişler bu tabloda listelendiğinde, düzenli bir Excel görünümü sağlar */

/* Genel Tablo Stili */
.order-table-container {
    overflow-x: auto; /* Yatay kaydırma çubuğu ekler (mobil için önemli) */
    margin-top: 20px;
    padding: 0 10px; /* Kenarlara boşluk */
}

.order-table {
    width: 100%;
    border-collapse: collapse; /* Kenarlıkları birleştirir */
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden; 
    min-width: 900px; /* Tablonun sığmaması durumunda kaydırma çubuğu çıkar */
}

/* Tablo Başlıkları */
.order-table thead th {
    background-color: #f8f9fa; /* Açık gri başlık arka planı */
    color: #34495e; 
    font-weight: 700;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    position: sticky; 
    top: 0;
    z-index: 10;
}

/* Tablo Satırları */
.order-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

.order-table tbody tr:hover {
    background-color: #f0f7ff; /* Hover durumunda satır rengi */
}

.order-table tbody tr:last-child {
    border-bottom: none;
}

/* Tablo Hücreleri */
.order-table tbody td {
    padding: 12px 15px;
    font-size: 0.95em;
    vertical-align: middle; /* İçeriğin ortadan hizalanması */
    color: #495057;
}

/* Durum Etiketi */
.order-table .status-label {
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    min-width: 80px; /* Tüm durumların eşit genişlikte görünmesi için */
}

/* Durum Renkleri (Mevcut renkler) */
.order-table .status-new { background-color: #e67e22; }
.order-table .status-preparing { background-color: #f1c40f; color: #333; }
.order-table .status-shipped { background-color: #3498db; }
.order-table .status-delivered { background-color: #2ecc71; }

/* Ürün Detay Hücresi */
.product-details-cell {
    font-size: 0.9em;
    line-height: 1.4;
    white-space: normal; /* İçeriğin yeni satıra geçmesine izin verir */
}

.product-details-cell strong {
    color: #2c3e50;
    font-weight: 600;
    display: block; /* Ürün adını ayrı bir satıra atar */
}

.product-details-cell .options {
    color: #7f8c8d;
    font-size: 0.85em;
    display: block;
    margin-top: 2px;
}

/* Fiyat ve Toplam Alanları */
.total-price-cell {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1em;
    white-space: nowrap;
}

/* İşlem Butonları */
.action-buttons {
    display: flex;
    flex-direction: column; /* Butonları alt alta dizmek için */
    gap: 5px;
}
.action-buttons button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    width: 100%; /* Tüm butonların eşit genişlikte olması */
    box-sizing: border-box;
}
.action-buttons .btn-view { background: #3498db; color: white; }
.action-buttons .btn-delete { background: #e74c3c; color: white; }
.action-buttons button:hover { opacity: 0.9; }