/* assets/css/style.css */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0b0c10;       /* Lüks ve şık siyah */
    --accent-color: #007bff;        /* Canlı Premium Mavi */
    --accent-hover: #0056b3;
    --text-color: #2b2d42;          /* Yumuşak koyu metin */
    --text-muted: #8d99ae;
    --bg-light: #f8f9fc;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 0;
    text-align: center;
    position: relative;
    z-index: 1050;
}

/* Navbar Premium */
.navbar-premium {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f7;
    position: relative;
    z-index: 1040;
}

.search-premium {
    position: relative;
    max-width: 380px;
    width: 100%;
}

.search-premium input {
    background-color: #f1f3f9;
    border: none;
    border-radius: 30px;
    padding: 10px 20px 10px 45px;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.search-premium input:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
}

.search-premium i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 30px;
}

.nav-icon-btn:hover {
    color: var(--accent-color);
    background-color: #f1f3f9;
}

.nav-icon-btn svg {
    margin-right: 8px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-icon-btn:hover svg {
    color: var(--accent-color);
}

/* Badge count for notifications/cart */
.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 50%;
    font-weight: 700;
    border: 2px solid #fff;
}

/* Sub-navigation bar */
.sub-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.sub-navbar .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.sub-navbar .nav-link:hover {
    color: var(--accent-color);
}

/* Premium Hero Section */
.premium-hero {
    background: radial-gradient(circle at 10% 20%, rgb(0, 107, 240) 0%, rgb(0, 48, 135) 90.7%);
    border-radius: 24px;
    color: #fff;
    padding: 4.5rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 107, 240, 0.15);
}

.premium-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Filter Card Premium */
.filter-card-premium {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.01);
}

/* Product Card Premium */
.product-card-premium {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.02);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(0, 123, 255, 0.1);
}

.product-img-wrapper {
    background-color: #f8f9fd;
    position: relative;
    padding: 2.5rem 1.5rem;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img, .product-img-wrapper i {
    transition: transform 0.5s ease;
}

.product-img-wrapper .product-img-real {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}

.product-card-premium:hover .product-img-wrapper img,
.product-card-premium:hover .product-img-wrapper i {
    transform: scale(1.08);
}

.product-brand-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ffffff;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.product-specs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.product-spec-tag {
    font-size: 0.7rem;
    font-weight: 600;
    background-color: #f1f3f9;
    color: #495057;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.product-spec-tag i {
    margin-right: 4px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.product-price-premium {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-add-to-cart {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 16px;
    border: none;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* User Flow forms (Login / Register) */
.auth-card-premium {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--hover-shadow);
    border: none;
    padding: 2.5rem;
}

.auth-input-premium {
    border-radius: 10px;
    border: 1.5px solid #e9ecef;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-input-premium:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Footer Premium */
.footer-premium {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 4rem 0 2rem 0;
    color: var(--text-color);
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Category Banners (Small Category Cards Under Slider) */
/* Category Scroll (Horizontal Scrollable Rectangle Category Row) */
.category-story-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 5px;
    margin-bottom: 2.5rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
    scroll-behavior: smooth;
    justify-content: flex-start;
}

.category-story-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar Safari/Chrome */
}

.category-story-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    width: 250px;
    min-width: 250px;
    height: 125px;
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.category-story-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.category-story-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    transition: background 0.3s ease;
    z-index: 1;
}

.category-story-item:hover::before {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35));
}

.category-story-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    z-index: 2;
    padding: 0 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    color: #ffffff !important;
    margin: 0;
    display: block;
    transition: transform 0.3s ease;
}

.category-story-item:hover .category-story-name {
    transform: scale(1.05);
}

/* Swiper Carousels Styling */
.swiper-section {
    margin-bottom: 4rem;
    position: relative;
}

.swiper-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.swiper-container-premium {
    padding: 10px 10px 40px 10px !important;
}

.swiper-slide {
    height: auto !important; /* Stretch cards to equal height */
}

/* Custom Swiper Navigation Buttons */
.swiper-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-nav-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.swiper-nav-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Swiper Pagination Dot Customization */
.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

.hover-primary-link {
    transition: color 0.2s ease;
}

.hover-primary-link:hover {
    color: var(--accent-color) !important;
}

/* Live Search Autocomplete Styles */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1050;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid #f1f3f7;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333333;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fd;
    color: var(--accent-color) !important;
}

.search-result-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fd;
    flex-shrink: 0;
}

.search-result-info {
    flex-grow: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 2px 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.search-result-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-price {
    font-weight: 700;
    color: var(--accent-color);
}

.search-result-no-match {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Floating WhatsApp Widget Styles */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    position: relative;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #22c35e;
}

.whatsapp-btn .ping-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.6;
    animation: ping-wa 2s infinite;
    z-index: -1;
}

@keyframes ping-wa {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none;
    animation: slideUp 0.3s ease;
    border: 1px solid #f1f3f7;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-popup-header {
    background: #097e35;
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-popup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #097e35;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.2);
}

.whatsapp-popup-header-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.whatsapp-popup-header-info span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.whatsapp-popup-body {
    padding: 20px;
    background: #f4f7f5;
}

.whatsapp-popup-msg {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 0 12px 12px 12px;
    font-size: 0.8rem;
    color: #4a4a4a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    margin: 0;
}

.whatsapp-popup-footer {
    padding: 12px 20px;
    background: #ffffff;
    text-align: center;
}

.whatsapp-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 30px;
    width: 100%;
    transition: background 0.2s ease;
}

.whatsapp-popup-btn:hover {
    background: #22c35e;
    color: #ffffff;
}

/* Product gallery thumbnails style */
.product-thumb {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent !important;
}
.product-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.product-thumb.border-primary {
    border-color: var(--primary-color) !important;
}



/* Mobile Optimizations for Sliders & Cart */
@media (max-width: 768px) {
    /* Hero Carousel */
    #premiumHeroCarousel .carousel-inner {
        border-radius: 12px !important;
    }
    #premiumHeroCarousel .carousel-item {
        height: auto !important;
        min-height: 250px;
    }
    
    /* Offcanvas Cart */
    .custom-cart-drawer {
        width: 100% !important;
        right: -100% !important;
    }
    .custom-cart-drawer.show {
        right: 0 !important;
    }
    
    /* Category Story Slider */
    .story-wrapper {
        gap: 10px !important;
    }
    .story-item {
        width: 70px !important;
    }
    .story-img-container {
        width: 60px !important;
        height: 60px !important;
    }
    .story-title {
        font-size: 0.65rem !important;
    }
}
