/* 
=================================================
  PREMIUM UI & UX ENHANCEMENTS (Doğru Home Store)
================================================= 
*/

/* --- 1. GLOBAL TYPOGRAPHY & SMOOTHING --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

body, h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea {
    font-family: 'Outfit', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 2. MICRO-ANIMATIONS & HOVER EFFECTS --- */
/* Product Cards */
.product-cart-wrap {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border-radius: 15px !important;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.product-cart-wrap:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
    border-color: rgba(59, 183, 126, 0.3) !important;
}

/* Buttons and Links */
.btn, .button, button {
    transition: all 0.3s ease-in-out !important;
    border-radius: 8px !important;
}

.btn:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(59, 183, 126, 0.2) !important;
}

/* --- 3. GLASSMORPHISM (FROSTED GLASS EFFECT) --- */
/* Sticky Header */
.header-bottom.sticky-bar.stick {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mini Cart Dropdown */
.cart-dropdown-wrap {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Popups & Modals */
.modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255,255,255,0.6) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

/* --- 4. COLOR PALETTE OPTIMIZATION (GRADIENTS) --- */
/* Primary Brand Buttons */
.btn-brand, .bg-brand {
    background: linear-gradient(135deg, #3BB77E 0%, #2a9662 100%) !important;
    border: none !important;
    color: #fff !important;
}

.btn-brand:hover {
    background: linear-gradient(135deg, #2a9662 0%, #1e744a 100%) !important;
}

/* Action Labels (Badges) */
.product-badges span.hot {
    background: linear-gradient(135deg, #f74b81 0%, #d82b60 100%) !important;
}
.product-badges span.sale {
    background: linear-gradient(135deg, #F6A400 0%, #e09400 100%) !important;
}
.product-badges span.new {
    background: linear-gradient(135deg, #3BB77E 0%, #2a9662 100%) !important;
}

/* --- 5. MOBILE UX (FLOATING BOTTOM ACTION BAR) --- */
@media only screen and (max-width: 768px) {
    /* Improve tap targets */
    .btn, button, input {
        min-height: 44px;
    }
    
    /* Make product details add-to-cart section sticky at bottom */
    .detail-extralink {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 15px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        z-index: 999;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        margin: 0 !important;
    }
    
    .detail-extralink .detail-qty {
        margin: 0 10px 0 0 !important;
        flex: 1;
    }
    
    .detail-extralink .product-extra-link2 {
        flex: 2;
        display: flex;
    }
    
    .detail-extralink .button.button-add-to-cart {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 10px 15px !important;
    }
}

/* --- 6. SKELETON LOADING ANIMATION (UTILITY) --- */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton-loading {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f6f7f8 4%, #edeef1 25%, #f6f7f8 36%);
    background-size: 1000px 100%;
    color: transparent !important;
    border-radius: 8px;
}
