/* =========================================
   DR. LIBERTY - V25 PREMIUM SUITE
   ========================================= */


/* --- MAĞAZA LAYOUT (Store Layout) --- */
.dr-shop-layout { display: flex; gap: 40px; margin-top: 30px; }

/* Filtre Paneli */
.dr-filter-sidebar { flex: 0 0 260px; position: sticky; top: 100px; height: fit-content; }
.dr-filter-widget { background: #fff; border: 1px solid #eee; padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.dr-filter-widget h4 { font-size: 16px; margin-bottom: 15px; border-bottom: 2px solid #000; display: inline-block; }

.dr-filter-select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #ddd; outline: none; }

.dr-filter-list { list-style: none; padding: 0; margin: 0; }
.dr-filter-list li { margin-bottom: 10px; }
.dr-filter-list a { text-decoration: none; color: #555; transition: 0.2s; font-size: 14px; font-weight: 500; }
.dr-filter-list a:hover { color: #d32f2f; padding-left: 5px; }

.dr-filter-promo { background: #000; color: #fff; padding: 15px; border-radius: 12px; text-align: center; font-size: 13px; font-weight: bold; }

/* Ana Ürün Alanı */
.dr-shop-main { flex: 1; }
.dr-page-title { font-size: 28px; font-weight: 800; margin-bottom: 25px; letter-spacing: -0.5px; }

/* Mobil Uyumluluk */
@media (max-width: 900px) {
    .dr-shop-layout { flex-direction: column; }
    .dr-filter-sidebar { flex: none; position: static; width: 100%; }
}

/* (Önceki Kart Stilleri Aynı Kalsın) */

.dr-container { max-width: 1200px; margin: 0 auto; padding: 20px 0; font-family: 'Inter', sans-serif; color: #111; }

/* --- 🔥 YENİLENEN VİTRİN IZGARASI --- */
.dr-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Biraz daha geniş */
    gap: 30px; 
}

.dr-card { 
    background: #fff; 
    border: 1px solid #f0f0f0; 
    border-radius: 16px; 
    overflow: hidden; 
    transition: all 0.4s ease; 
    position: relative; 
    display: flex; 
    flex-direction: column;
}

/* Hover Efekti: Yukarı Kalkma */
.dr-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    border-color: #000; 
}

.dr-card a { text-decoration: none; color: inherit; display:block; height: 100%; display: flex; flex-direction: column; }

/* Resim Alanı */
.dr-card-img { 
    height: 280px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 30px; 
    background: #fff; 
    overflow: hidden; /* Zoom için gerekli */
}

/* Resim Zoom Efekti */
.dr-card-img img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    transition: transform 0.5s ease; 
}
.dr-card:hover .dr-card-img img { transform: scale(1.08); }

/* İçerik Alanı */
.dr-info { 
    padding: 20px; 
    text-align: center; 
    border-top: 1px solid #f9f9f9; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
}

/* Başlık */
.dr-grid-title { 
    font-weight: 700; 
    font-size: 15px; 
    line-height: 1.4; 
    margin-bottom: 10px; 
    color: #222; 
    min-height: 42px; /* 2 satır yüksekliği */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fiyat */
.dr-grid-price { 
    margin-bottom: 15px; 
}
.dr-grid-price .old { 
    text-decoration: line-through; 
    color: #999; 
    font-size: 14px; 
    margin-right: 8px; 
}
.dr-grid-price .current { 
    color: #d32f2f; 
    font-weight: 800; 
    font-size: 18px; 
}

/* İndirim Rozeti */
.dr-sale-badge { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: #000; /* Kırmızı yerine Siyah Premium */
    color: #fff; 
    font-size: 12px; 
    padding: 5px 10px; 
    border-radius: 6px; 
    font-weight: 800; 
    z-index: 10;
}

/* 🚀 YENİ BUTON TASARIMI */
.dr-grid-btn { 
    display: block; 
    width: 100%; 
    background: #f5f5f5; 
    color: #000; 
    padding: 12px 0; 
    border-radius: 8px; 
    font-size: 13px; 
    font-weight: 700; 
    letter-spacing: 0.5px; 
    transition: 0.3s; 
}
.dr-card:hover .dr-grid-btn { 
    background: #000; 
    color: #fff; 
}

/* --- SİDEBAR & MAĞAZA DÜZENİ --- */
.dr-shop-layout { display: flex; gap: 40px; margin-top: 30px; }
.dr-filter-sidebar { flex: 0 0 260px; position: sticky; top: 100px; height: fit-content; }
.dr-filter-widget { background: #fff; border: 1px solid #eee; padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.dr-filter-list { list-style: none; padding: 0; }
.dr-filter-list li { margin-bottom: 12px; }
.dr-filter-list a { text-decoration: none; color: #555; font-weight: 500; font-size: 14px; transition: 0.2s; }
.dr-filter-list a:hover { color: #d32f2f; padding-left: 5px; }
.dr-filter-promo { background: #000; color: #fff; padding: 15px; border-radius: 12px; text-align: center; font-size: 13px; font-weight: bold; }
.dr-shop-main { flex: 1; }

/* --- DRAWER (MASTERPIECE SEPET) --- */
.dr-drawer { position:fixed; top:0; right:-450px; width:450px; height:100vh; background:#fff; z-index:99999; transition:0.4s ease; display:flex; flex-direction:column; box-shadow:-10px 0 40px rgba(0,0,0,0.1); }
.dr-drawer.open { right:0; }
.dr-drawer-header { padding: 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 20px; }
.dr-shipping-container { background: #f9f9f9; padding: 20px; border-bottom: 1px solid #eee; }
.dr-shipping-track { height: 6px; background: #e0e0e0; border-radius: 10px; overflow: hidden; margin-top: 8px; }
.dr-shipping-fill { height: 100%; background: #000; transition: 0.5s; }
.dr-drawer-items { padding: 25px; flex: 1; overflow-y: auto; }

/* SEPET KARTI & SAYILAR */
.dr-drawer-card { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }
.dr-card-left { width: 80px; height: 80px; border: 1px solid #eee; border-radius: 10px; padding: 5px; display: flex; align-items: center; justify-content: center; }
.dr-card-left img { max-width: 100%; max-height: 100%; }
.dr-card-right { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.dr-item-title { font-weight: 700; font-size: 14px; color: #000; }
.dr-card-footer { display: flex; justify-content: space-between; align-items: center; }

/* ADET KONTROLÜ (KESİN SİYAH) */
.dr-qty-control { display: flex; border: 1px solid #ddd; border-radius: 6px; height: 32px; background: #fff; overflow: hidden; }
.dr-qty-control button { width: 30px; border: none; background: #f5f5f5; cursor: pointer; font-size: 18px; color: #000 !important; }
.dr-qty-val { width: 30px; text-align: center; line-height: 32px; font-weight: 800; font-size: 14px; color: #000 !important; }
.dr-line-total { font-weight: 800; font-size: 14px; color: #000; }

.dr-drawer-footer { padding: 25px; border-top: 1px solid #eee; background: #fff; }
#drGoCheckout { width: 100%; padding: 18px; border-radius: 10px; background: #000; color: #fff; border: none; font-weight: 800; cursor: pointer; }

@media (max-width: 900px) { .dr-shop-layout { flex-direction: column; } .dr-filter-sidebar { flex: none; width: 100%; } .dr-drawer { width: 100%; } }

/* --- DİĞER CSS'LER (Detay, Drawer vb.) AYNI KALIYOR --- */
/* Burayı kopyala-yapıştır yaparken önceki Detay ve Drawer stillerini silme. 
   Ama garanti olsun diye aşağıya Detay ve Drawer stillerini de ekliyorum. */

/* Detay */
.dr-premium-breadcrumb { margin-bottom: 30px; } .dr-premium-breadcrumb a { color: #666; text-decoration: none; font-weight: 500; }
.dr-premium-wrapper { display: flex; gap: 60px; align-items: flex-start; }
.dr-premium-gallery { flex: 1.3; position: sticky; top: 100px; }
.dr-premium-image-box { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; }
.dr-premium-image-box img { width: 100%; display: block; object-fit: contain; }
.dr-premium-info { flex: 1; padding-top: 10px; }
.dr-premium-live { display: inline-flex; align-items: center; gap: 8px; background: #e0f2f1; color: #00695c; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.dr-dot { width: 8px; height: 8px; background: #009688; border-radius: 50%; animation: p-pulse 2s infinite; }
@keyframes p-pulse { 0% { opacity:1; } 50% { opacity:0.4; } 100% { opacity:1; } }
.dr-premium-title { font-size: 36px; line-height: 1.15; font-weight: 800; margin: 0 0 20px; letter-spacing: -0.5px; }
.dr-premium-price { font-size: 32px; font-weight: 800; color: #000; margin-bottom: 30px; display: flex; align-items: center; gap: 15px; }
.dr-old { text-decoration: line-through; color: #999; font-size: 20px; font-weight: 500; }
.dr-current small { font-size: 16px; font-weight: 600; color: #555; }
.dr-premium-trust { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 30px; color:#555; font-size:14px; font-weight:600; }
.dr-premium-desc { font-size: 16px; line-height: 1.7; color: #444; }
.dr-premium-actions { display: flex; gap: 15px; margin-bottom: 35px; height: 50px; }
.dr-premium-qty { display: flex; border: 1px solid #ccc; border-radius: 8px; overflow: hidden; width: 120px; background: #fff; }
.dr-premium-qty button { width: 40px; border: none; background: #f5f5f5; font-size: 20px; cursor: pointer; color: #000; }
.dr-premium-qty button:hover { background: #e0e0e0; }
.dr-premium-qty input { flex: 1; width: 40px; border: none; background: #fff !important; text-align: center; font-weight: 800; font-size: 18px; color: #000 !important; opacity: 1 !important; -webkit-text-fill-color: #000 !important; }
.dr-add-btn.premium { flex: 1; background: #111; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; text-transform: uppercase; }
.dr-add-btn.premium:hover { background: #333; }

/* Drawer */
.dr-drawer-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:99998; display:none; }
.dr-drawer-overlay.open { display:block; }
.dr-drawer { position:fixed; top:0; right:-450px; width:450px; max-width:90%; height:100vh; background:#fff; z-index:99999; transition:0.4s ease; display:flex; flex-direction:column; box-shadow:-10px 0 40px rgba(0,0,0,0.1); }
.dr-drawer.open { right:0; }
.dr-drawer-header { padding: 20px 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background:#fff; }
.dr-shipping-container { background: #f9f9f9; padding: 15px 25px; border-bottom: 1px solid #eee; }
.dr-shipping-track { height: 6px; background: #e0e0e0; border-radius: 10px; overflow: hidden; margin-top:5px; }
.dr-shipping-fill { height: 100%; background: #111; border-radius: 10px; }
.dr-drawer-items { padding: 25px; flex: 1; overflow-y: auto; background:#fff; }
.dr-drawer-card { display: flex; gap: 15px; margin-bottom: 25px; border-bottom: 1px solid #f0f0f0; padding-bottom: 25px; align-items:flex-start; }
.dr-card-left { width: 80px; height: 80px; border: 1px solid #eee; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding:5px; box-sizing:border-box; }
.dr-card-left img { max-width:100%; max-height:100%; }
.dr-card-right { flex: 1; display:flex; flex-direction:column; justify-content:space-between; min-height:80px; }
.dr-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.dr-item-title { font-weight: 600; font-size: 14px; max-width: 90%; line-height:1.3; color:#111; }
.dr-drawer-remove { font-size: 22px; color: #ccc; cursor: pointer; line-height:0.8; }
.dr-drawer-remove:hover { color: #d32f2f; }
.dr-card-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.dr-line-total { font-weight: 700; font-size: 14px; color:#000; }
.dr-qty-control { display: flex; border: 1px solid #ddd; border-radius: 6px; height: 30px; width: 90px; background: #fff; overflow: hidden; }
.dr-drawer-qty-btn { width: 30px; height: 100%; border: none; background: #f9f9f9; cursor: pointer; font-size: 16px; color: #333; display: flex; align-items: center; justify-content: center; }
.dr-drawer-qty-btn:hover { background: #eee; color: #000; }
.dr-qty-val { flex: 1; text-align: center; font-weight: 700; font-size: 14px; color: #000; line-height: 30px; }
#drDrawer > div:last-child { padding: 25px; border-top: 1px solid #eee; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); }
#drGoCheckout { width: 100%; padding: 16px; border-radius: 10px; background: #000; color: #fff; border: none; font-size: 15px; font-weight: 700; text-transform: uppercase; cursor: pointer; transition:0.2s; }
#drGoCheckout:hover { background: #333; transform:translateY(-2px); }

/* Checkout */
.dr-checkout-layout { display: flex; gap: 40px; margin-top: 20px; }
.dr-col-left { flex: 1.5; } .dr-col-right { flex: 1; }
.dr-summary-box { background: #fff; padding: 25px; border: 1px solid #e0e0e0; border-radius: 12px; position: sticky; top: 20px; }
.dr-input { width: 100%; padding: 14px; border: 1px solid #ccc; border-radius: 8px; margin-bottom: 15px; box-sizing: border-box; }
.dr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.dr-btn-submit { width: 100%; background: #000; color: #fff; padding: 16px; border: none; font-weight: 700; border-radius: 8px; cursor: pointer; }
.dr-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.95); z-index: 100000; display: none; align-items: center; justify-content: center; flex-direction: column; }
.dr-spinner { width: 40px; height: 40px; border: 4px solid #eee; border-top: 4px solid #000; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Slider */
.dr-related-section.premium { margin-top: 80px; }
.dr-related-section.premium h3 { font-size: 24px; margin-bottom: 30px; font-weight: 800; }
.dr-related-scroll { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; }
.dr-related-card { min-width: 240px; border: 1px solid #eee; border-radius: 16px; text-decoration: none; color: inherit; background: #fff; transition: 0.3s; }
.dr-related-img { height: 220px; padding: 20px; display: flex; align-items: center; justify-content: center; }
.dr-related-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dr-related-info { padding: 20px; text-align: center; border-top: 1px solid #f9f9f9; }
.dr-related-title { font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.dr-related-price { color: #d32f2f; font-weight: 800; }

@media (max-width: 900px) {
    .dr-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dr-card-img { height: 180px; }
    .dr-premium-wrapper, .dr-checkout-layout { flex-direction: column; gap: 30px; }
    .dr-drawer { width: 100%; }
}

/* Tema sepet ikonunu gizle (Partdo/Woo yaygın) */
.header-cart,
.header-cart-icon,
.cart-contents,
.mini-cart-trigger,
.site-header-cart,
.menu-item-cart,
.cart-icon {
  display: none !important;
}

