/* =====================================================
   Beyaz Eşya Dünyası - Ana Stil Dosyası
   ===================================================== */

:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #42A5F5;
    --secondary: #2E7D32;
    --secondary-light: #4CAF50;
    --accent: #FF6F00;
    --accent-light: #FFA726;
    --dark: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--gray-100);
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Top Bar ---- */
.top-bar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .top-info span {
    font-size: 0.85rem;
}

.top-bar .top-info i,
.top-bar .top-social a {
    color: var(--accent-light);
}

.top-bar .top-social a {
    display: inline-block;
    margin-left: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.top-bar .top-social a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* ---- Navbar ---- */
.navbar {
    padding: 12px 0;
    z-index: 1050;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar .nav-link {
    color: var(--gray-800) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(21, 101, 192, 0.08);
}

.navbar .nav-link i {
    margin-right: 4px;
}

.navbar .btn-success {
    background: var(--secondary);
    border-color: var(--secondary);
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
}

.navbar .btn-success:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    transform: translateY(-1px);
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    overflow: hidden;
    min-height: 500px;
}

.hero-section .hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-section p.lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
}

.hero-section .btn-hero {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-transform: none;
    transition: var(--transition);
}

.hero-section .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--white);
}

/* ---- Section Styles ---- */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ---- Category Cards ---- */
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.category-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.category-card .card-img-overlay-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-card .card-body {
    padding: 24px;
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.category-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.category-card .btn-category {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.category-card .btn-category:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

/* ---- Product Cards ---- */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-img {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--gray-100);
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card .product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card .product-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card .product-desc {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-card .product-price .old-price {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

.product-card .product-brand {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.product-card .btn-detail {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.product-card .btn-detail:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}

/* ---- Product Detail ---- */
.product-detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}

.product-detail-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-detail-info {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.product-detail-info .price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.product-detail-info .old-price-tag {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-decoration: line-through;
}

.product-detail-info .discount-badge {
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: var(--white);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-phone {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-phone:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ---- Features Section ---- */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-box .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

.feature-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-box p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---- Page Header / Breadcrumb ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px 0;
    color: var(--white);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    background: none;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb-item.active {
    color: var(--accent-light);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* ---- Content Page ---- */
.content-page {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.content-page h2,
.content-page h3 {
    color: var(--dark);
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-page h2 { font-size: 1.6rem; }
.content-page h3 { font-size: 1.3rem; }

.content-page ul {
    padding-left: 20px;
}

.content-page li {
    margin-bottom: 8px;
}

/* ---- Contact Page ---- */
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--white);
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 8px;
    padding: 12px 16px;
    border-color: var(--gray-300);
    font-size: 0.95rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.15);
}

/* ---- Filter Sidebar ---- */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.filter-sidebar h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.filter-sidebar .list-group-item {
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: var(--transition);
    color: var(--gray-800);
}

.filter-sidebar .list-group-item:hover,
.filter-sidebar .list-group-item.active {
    background: rgba(21, 101, 192, 0.1);
    color: var(--primary);
}

.filter-sidebar .list-group-item.active {
    font-weight: 600;
}

.filter-sidebar .badge {
    background: var(--primary);
}

/* ---- Footer ---- */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    margin-right: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent-light);
    margin-right: 8px;
    width: 20px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0 20px;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: var(--white);
    transform: scale(1.1);
    animation: none;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ---- Alerts ---- */
.alert-custom {
    border-radius: var(--radius);
    border: none;
    padding: 15px 20px;
}

/* ---- No Image Placeholder ---- */
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 3rem;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #e65100 100%);
    padding: 60px 0;
    color: var(--white);
}

.cta-section h2 {
    font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-section .hero-content {
        padding: 50px 0;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.lead {
        margin: 0 auto 20px;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .content-page {
        padding: 25px;
    }
    .product-detail-img img {
        height: 280px;
    }
}

/* ---- Admin Styles ---- */
.admin-sidebar {
    background: linear-gradient(180deg, var(--dark) 0%, #16213e 100%);
    min-height: 100vh;
    padding-top: 20px;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    transition: var(--transition);
    overflow-y: auto;
}

.admin-sidebar .sidebar-brand {
    padding: 15px 20px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.admin-sidebar .sidebar-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.admin-sidebar .sidebar-brand span {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin-top: 5px;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 12px 20px !important;
    font-size: 0.9rem;
    border-radius: 0;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link.active {
    border-left: 3px solid var(--accent);
}

.admin-sidebar .nav-link i {
    width: 24px;
    margin-right: 8px;
}

.admin-content {
    margin-left: 260px;
    padding: 20px 30px;
    min-height: 100vh;
    background: var(--gray-100);
}

.admin-topbar {
    background: var(--white);
    padding: 15px 25px;
    margin: -20px -30px 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-card .stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.admin-table {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table .table {
    margin-bottom: 0;
}

.admin-table .table th {
    background: var(--gray-100);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--gray-200);
}

.admin-table .table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark) 100%);
}

.admin-login .login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
}
