* {margin:0;padding:0;box-sizing:border-box;scroll-behavior:smooth;}
:root {
    --primary-color:#093974;
    --secondary-color:#007bff;
    --accent-color:#fca311;
    --background-light:#f8f8f8;
    --text-dark:#333;
    --text-light:#fff;
    --border-color:#ddd;
    --whatsapp-color:#25D366;
    --header-height:100px;
    --announcement-bar-height:40px;
}
body {padding-top:calc(var(--header-height) + var(--announcement-bar-height));background:var(--background-light);color:var(--text-dark);font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;}
a {text-decoration:none;color:var(--primary-color);}
a:hover {color:var(--secondary-color);}

/* Duyuru */
.announcement-bar {position:fixed;top:0;left:0;width:100%;height:var(--announcement-bar-height);background:#fff;z-index:1000;overflow:hidden;display:flex;align-items:center;border-bottom:1px solid var(--border-color);}
.scrolling-text {white-space:nowrap;animation:scrollRightToLeft 25s linear infinite;padding-left:100%;font-size:15px;font-weight:600;color:var(--primary-color);}
.announcement-bar:hover .scrolling-text {animation-play-state:paused;}
@keyframes scrollRightToLeft {0%{transform:translateX(0%)}100%{transform:translateX(-100%)}}

/* Header */
.header-wrapper {position:fixed;top:var(--announcement-bar-height);left:0;width:100%;background:var(--primary-color);box-shadow:0 1px 5px rgba(0,0,0,.2);z-index:999;height:var(--header-height);display:flex;align-items:center;}
.header-inner {max-width:1400px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center;width:100%;}

/* Logo */
.logo {max-width:300px;height:auto;object-fit:contain;transition:max-width .3s;}

/* Arama Formu - Esnek hale getirildi */
.search-form {display:flex;gap:8px;align-items:center;flex:1;max-width:700px;margin:0 20px;}
.search-input {padding:10px 14px;border:1px solid #ccc;border-radius:6px;flex:1;min-width:150px;font-size:14px;background:#fff;}
.search-input:focus {outline:none;border-color:var(--primary-color);}
.search-btn {padding:10px 14px;background:var(--primary-color);color:white;border:none;border-radius:6px;cursor:pointer;flex-shrink:0;}
.search-btn:hover {background:#062650;}

.user-actions {display:flex;gap:15px;align-items:center;}
.welcome-text {color:var(--text-light);font-weight:500;}

/* Butonlar */
.btn {padding:10px 15px;border:none;border-radius:6px;cursor:pointer;font-weight:600;transition:all .2s;display:inline-flex;align-items:center;gap:8px;}
.btn-primary {background:var(--secondary-color);color:white;}
.btn-secondary {background:rgba(255,255,255,.2);color:white;border:1px solid rgba(255,255,255,.4);}
.btn-whatsapp {background:var(--whatsapp-color);color:white;justify-content:center;width:100%;}
.btn-whatsapp:hover {background:#1EAE50;}

/* Sidebar ve İçerik */
.main-content-wrapper {max-width:1400px;margin:25px auto 50px;padding:0 20px;display:flex;gap:30px;}
.categories-sidebar {width:250px;flex-shrink:0;position:sticky;top:calc(var(--header-height) + var(--announcement-bar-height) + 25px);background:#fff;border-radius:8px;box-shadow:0 2px 5px rgba(0,0,0,.05);border:1px solid var(--border-color);padding:15px 0;align-self:flex-start;}
.sidebar-title {font-size:1.25rem;color:var(--primary-color);padding:0 20px 15px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;gap:10px;}
.category-list {list-style:none;max-height:65vh;overflow-y:auto;}
.category-item a {display:block;padding:12px 25px;font-weight:500;color:#444;border-left:4px solid transparent;transition:all .2s;}
.category-item:hover a, .category-item.current a {background:#f4f8ff;color:var(--primary-color);border-left-color:var(--primary-color);}

.products-main-content {flex-grow:1;}
.search-results-title {font-size:1.6rem;color:var(--primary-color);margin:30px 0 20px;text-align:center;}
.products-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:25px;}
.product-card {background:var(--background-light);border:1px solid var(--border-color);border-radius:10px;overflow:hidden;box-shadow:0 4px 8px rgba(0,0,0,.05);cursor:pointer;transition:all .2s;display:flex;flex-direction:column;}
.product-card:hover {transform:translateY(-5px);box-shadow:0 8px 16px rgba(0,0,0,.1);}
.product-image-container {height:250px;background:#fff;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--border-color);}
.product-image {width:100%;height:100%;object-fit:cover;}
.product-image-placeholder {display:flex;flex-direction:column;align-items:center;justify-content:center;color:#aaa;background:#f9f9f9;width:100%;height:100%;}
.product-info {padding:20px;display:flex;flex-direction:column;flex-grow:1;}
.category-tag {font-size:.75rem;font-weight:700;color:var(--secondary-color);background:#e6f2ff;padding:4px 8px;border-radius:5px;align-self:flex-start;margin-bottom:10px;}
.product-name {font-size:1.2rem;font-weight:600;margin-bottom:10px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.product-desc {font-size:.9rem;color:#666;margin-bottom:15px;line-height:1.5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;flex-grow:1;}
.product-price-box {font-size:1.5rem;font-weight:700;color:var(--accent-color);text-align:right;margin-bottom:15px;align-self:flex-end;}
.no-products {text-align:center;padding:80px;background:#fff;border-radius:8px;border:1px solid var(--border-color);}

/* Modal Genel */
.modal-overlay {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;z-index:1001;transition:opacity .3s;}
.modal-overlay.active {display:flex;opacity:1;}
.modal-content {background:#fff;padding:30px;border-radius:10px;max-width:500px;width:95%;position:relative;transform:scale(.9);transition:all .3s;}
.modal-overlay.active .modal-content {transform:scale(1);}

/* Product Detail Modal */
.product-detail-content {max-width:900px;max-height:90vh;overflow-y:auto;padding:40px;}
.product-detail-layout {display:flex;gap:30px;}
.product-detail-image-wrapper {flex:1;}
#modal-product-image {width:100%;max-height:450px;object-fit:cover;border-radius:10px;}
#modal-image-placeholder {display:none;flex-direction:column;align-items:center;justify-content:center;height:350px;background:#f9f9f9;color:#aaa;font-size:1.5rem;}
#modal-image-placeholder i {font-size:3rem;margin-bottom:10px;}
.product-detail-info {flex:1.5;}
.modal-product-price-box {font-size:1.8rem;font-weight:700;color:var(--accent-color);background:#fffaf0;padding:10px 15px;border-radius:8px;display:inline-block;margin-bottom:25px;}

/* Form */
.form-group {margin-bottom:15px;}
.form-group input, .form-group textarea, .form-group select {
    width:100%;padding:10px;border:1px solid #ddd;border-radius:6px;
}

/* RESPONSIVE DÜZENLEMELER */
@media (max-width:992px) {
    .main-content-wrapper {flex-direction:column;padding:0 15px;}
    .categories-sidebar {position:static;width:100%;order:-1;}
}

@media (max-width:768px) {
    :root {--header-height:80px;}
    body {padding-top:calc(var(--header-height) + var(--announcement-bar-height));}
    .header-inner {padding:0 15px;}
    .logo {max-width:200px;}
    .scrolling-text {font-size:13px;}
    .search-form {gap:6px;}
    .search-input {padding:8px 12px;font-size:13px;}
    .search-btn {padding:8px 12px;}
    .products-grid {gap:20px;}
    .product-image-container {height:220px;}
    .product-detail-layout {flex-direction:column;}
    #modal-product-image {max-height:350px;}
    .main-content-wrapper {margin:15px auto 40px;}
}

@media (max-width:480px) {
    :root {--header-height:70px;--announcement-bar-height:0px;}
    .announcement-bar {display:none;}
    body {padding-top:var(--header-height);}
    .logo {max-width:150px;}
    .welcome-text {display:none;}
    .user-actions {gap:10px;}
    .search-input {min-width:100px;}
    .product-image-container {height:200px;}
    .product-info {padding:15px;}
    .modal-content, .product-detail-content {padding:20px;}
}