/* PREMIUM OVERRIDE CSS */
/* PREMIUM BORDER RADIUS */
.card,
.product-item,
.product-box,
.box,
.payment-method,
.form-control,
.modal-content,
.dropdown-menu,
.alert {
    border-radius: 12px !important;
}
/* SMOOTH TRANSITIONS */
* {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}
/* PREMIUM HOVER EFFECT */
.card:hover,
.product-item:hover,
.product-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.10);
}
/* SOFT SHADOW */
.card,
.product-item,
.product-box,
.box {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
/* PREMIUM BUTTONS */
.btn {
    border-radius: 10px;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
}
/* =========================
   PREMIUM PRODUCT CARDS
   ========================= */

.product-item,
.product-box,
.item-product,
.product-card {
    border-radius: 14px !important;

    /* Tam beyaz yerine soft gradient */
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #fafafa 100%
    );

    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;

    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    transition:
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

/* Hover efekti */
.product-item:hover,
.product-box:hover,
.item-product:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.12);
}

/* =========================
   PRODUCT IMAGE
   ========================= */

.product-item img,
.product-box img,
.item-product img,
.product-card img {
    transition: transform 0.45s ease;
}

.product-item:hover img,
.product-box:hover img,
.item-product:hover img,
.product-card:hover img {
    transform: scale(1.04);
}

/* =========================
   PRODUCT INFO AREA
   ========================= */

.product-item .product-info,
.product-box .product-info {
    padding: 14px 16px;
    background: rgba(255,255,255,0.94);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* =========================
   TEXT TUNING
   ========================= */

.product-item .product-title,
.product-box .product-title {
    font-weight: 500;
    color: #222;
}

.product-item .price,
.product-box .price {
    font-weight: 600;
    color: #111;
}
/* =========================
   ADD TO CART HOVER EFFECT
   ========================= */

/* Buton başlangıç durumu */
.product-item .add-to-cart,
.product-box .add-to-cart {
    opacity: 0;
    transform: translateY(8px);
}

.product-item:hover .add-to-cart,
.product-box:hover .add-to-cart {
    opacity: 1;
    transform: translateY(0);
}


/* Hover'da görünür */
.product-item:hover .btn-add-to-cart,
.product-box:hover .btn-add-to-cart {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* =========================
   PRODUCT IMAGE RATIO FIX
   ========================= */

.product-item .product-image,
.product-box .product-image {
    aspect-ratio: 3 / 4;   /* Moda için ideal */
    overflow: hidden;
    background: #f5f5f5;
}

.product-item .product-image img,
.product-box .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* =========================
   PRODUCT TEXT REAL FIX
   ========================= */

/* Yazı alanını aşağı al */
.product-item .item-details {
    padding: 16px 16px 18px 16px !important;
}

/* Ürün başlığı */
.product-item .item-details .product-title {
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.45;
}

/* Marka / satıcı */
.product-item .item-details .product-user {
    margin-bottom: 6px;
    font-size: 12.5px;
    opacity: 0.75;
}

/* Rating alanı */
.product-item .product-item-rating {
    margin: 6px 0;
}

/* Fiyat */
.product-item .item-meta .price {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
}
/* =========================
   SKELETON LOADING
   ========================= */

/* Skeleton animasyon */
@keyframes skeleton {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* Sayfa yüklenirken */
body.loading .product-item {
    position: relative;
    overflow: hidden;
}

/* Skeleton overlay */
body.loading .product-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e6e6e6 37%,
        #f0f0f0 63%
    );
    background-size: 400% 100%;
    animation: skeleton 1.4s ease infinite;
    z-index: 5;
}

/* Gerçek içerik gizli */
body.loading .product-item * {
    visibility: hidden;
}

/* =========================
   HARD LOCK LOADER
   ========================= */

body.loading {
    overflow: hidden;
}

/* Loader her şeyin üstünde */
#premium-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 2147483647; /* MAX SAFE */

    display: flex;
    align-items: center;
    justify-content: center;

    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Logo */
#premium-loader img {
    width: 90px;
    animation: logoBreath 1.6s ease-in-out infinite;
}

/* Animasyon */
@keyframes logoBreath {
    0% { transform: scale(0.95); opacity: 0.4; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.4; }
}

/* Site görünmesin */
body.loading > *:not(#premium-loader) {
    visibility: hidden;
}

/* Açıldıktan sonra */
body.loaded > * {
    visibility: visible;
}

body.loaded #premium-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* =========================
   SOFT SCROLL REVEAL
   ========================= */

/* Başlangıç durumu */
.product-item {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

/* Görünür olunca */
.product-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Mobilde biraz daha kısa */
@media (max-width: 768px) {
    .product-item {
        transform: translateY(18px);
        transition-duration: 0.6s;
    }
}
/* =========================
   CONTENT FADE-IN
   ========================= */

/* Başlangıç: içerik gizli */
body:not(.content-loaded) .site-header,
body:not(.content-loaded) main,
body:not(.content-loaded) footer {
    opacity: 0;
    transform: translateY(8px);
}

/* Geçiş */
.site-header,
main,
footer {
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

/* Header önce gelsin */
.site-header {
    transition-delay: 0.1s;
}

/* Ana içerik */
main {
    transition-delay: 0.18s;
}

/* Footer en son */
footer {
    transition-delay: 0.26s;
}

/* Yüklendi */
body.content-loaded .site-header,
body.content-loaded main,
body.content-loaded footer {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   SOFT SECTION DIVIDER
   ========================= */

.section-divider {
    height: 1px;
    margin: 48px 0;
    background: linear-gradient(
        to right,
        transparent,
        var(--accent-soft),
        transparent
    );
}

/* =========================
   BUTTON & INPUT FOCUS
   ========================= */

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-soft);
}

/* =========================
   MICRO BADGES
   ========================= */

.badge-micro {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 4px 6px;
    background: var(--accent-dark);
    color: #ffffff;
    border-radius: 4px;
    display: inline-block;
}
/* =========================
   DISCOUNT PRICE COLORS
   ========================= */

/* Eski fiyat (üstü çizili) */
.price-old,
.old-price,
.price del,
del {
    color: #9a9a9a !important; /* soft gri */
    opacity: 0.7;
    font-weight: 400;
}

/* Yeni / indirimli fiyat */
.price-new,
.discounted-price,
.price ins,
ins {
    color: #111111 !important; /* koyu premium */
    font-weight: 600;
    text-decoration: none;
}

/* Yan yana duruyorsa aralık */
.price del + ins,
del + ins {
    margin-left: 6px;
}


/* ===== ÜRÜN KARTI UZATILMIŞ – İNDİRİM ETİKETİ İÇERİDE ===== */

.product-item {
    position: relative;
    overflow: hidden;      /* artık taşma yok */
    padding-bottom: 46px;  /* etiket için kartı uzat */
}

/* ===== MINIMAL LUXURY DISCOUNT BADGE (NO SHADOW) ===== */

.product-item {
    position: relative;
    overflow: hidden;
    padding-bottom: 46px; /* kart uzatıldı */
}

/* İndirim butonu – sade */
.product-item .discount-badge {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #d4af37;              /* gold yazı */
    background: #000;            /* saf siyah */
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    z-index: 5;
}
@media (max-width: 768px) {

  /* PROFİL LINKİ */
  a.image-profile-drop.nav-link.dropdown-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;

    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: #111 !important;
  }

  a.image-profile-drop.nav-link.dropdown-toggle:hover,
  a.image-profile-drop.nav-link.dropdown-toggle:focus,
  a.image-profile-drop.nav-link.dropdown-toggle:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }

  /* PROFİL RESMİ */
  a.image-profile-drop img {
    border-radius: 50%;
    box-shadow: none !important;
    border: none !important;
  }

  /* DROPDOWN MENÜ */
  .dropdown-menu.image-profile-drop-menu {
    background: #fff !important;
    color: #111 !important;
    border: none !important;
    box-shadow: none !important;
    display: block; /* dropdown gizlenmişse görünmesini sağlar */
  }

  /* Menüdeki alt linkler ve kategoriler */
  .dropdown-menu.image-profile-drop-menu a.dropdown-item {
    color: #111 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: block;
    padding: 8px 12px;
  }

  .dropdown-menu.image-profile-drop-menu a.dropdown-item:hover {
    background: #f2f2f2 !important;
  }

  /* Bootstrap arrow / focus ring temizliği */
  .dropdown-toggle::after {
    display: none !important;
  }

  /* Tap highlight kapatma */
  a.image-profile-drop {
    -webkit-tap-highlight-color: transparent;
  }

}
