/* 
===============================================
    abcxyz.com - Premium Design System
===============================================
*/

:root {
    /* Color Palette - Light Mode */
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;

    /* Brand Colors */
    --primary: #6366f1;
    /* Indigo */
    --primary-hover: #4f46e5;
    --accent: #0ea5e9;
    /* Light Blue */
    --success: #10b981;
    /* Emerald */
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Gravity Core (AI) Color */
    --core: #8b5cf6;
    --core-hover: #7c3aed;
    --core-glow: rgba(139, 92, 246, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

[data-theme="dark"] {
    /* Color Palette - Dark Mode */
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: #334155;

    /* Glassmorphism Dark */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Gravity Core Dark Glow */
    --core-glow: rgba(139, 92, 246, 0.6);
}

[data-theme="core"] {
    /* Color Palette - Core (Cyberpunk / Matrix) Mode */
    --bg-color: #0b021a;
    --surface-color: #170731;
    --text-primary: #e2d5f8;
    --text-secondary: #9f8bbd;
    --border: #3b2266;

    /* Brand Colors - Adjusted for Core Theme */
    --primary: #a855f7;
    --primary-hover: #9333ea;
    --accent: #d946ef;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Gravity Core (AI) Color */
    --core: #c084fc;
    --core-hover: #a855f7;
    --core-glow: rgba(192, 132, 252, 0.6);

    /* Glassmorphism Core */
    --glass-bg: rgba(23, 7, 49, 0.7);
    --glass-border: rgba(192, 132, 252, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Form Elements */
input, textarea, select {
    color: var(--text-primary);
    font-family: inherit;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* 
===============================================
    Navbar
===============================================
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 10px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--text-primary);
    font-weight: 500;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 5px 5px 5px 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s;
}

.search-bar button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: color 0.2s;
}

.cart-btn:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary);
    transform: rotate(30deg);
}

/* 
===============================================
    Hero Section
===============================================
*/
.hero {
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--surface-color);
    border-color: var(--text-primary);
}

.btn-core {
    background: var(--core);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--core-glow);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-core:hover {
    background: var(--core-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--core-glow);
}

.core-prompt-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1), 0 0 20px var(--core-glow);
    padding: 15px;
    transition: all 0.3s ease;
}

.core-prompt-container:focus-within {
    border-color: var(--core);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 0 30px var(--core-glow);
    transform: translateY(-2px);
}

.core-textarea {
    width: 100%;
    min-height: 60px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    padding: 10px;
}

.core-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.core-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
}

/* Hero Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    background: var(--primary);
    width: 300px;
    height: 300px;
    top: -50px;
    left: -100px;
}

.shape-2 {
    background: var(--accent);
    width: 250px;
    height: 250px;
    bottom: 50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* 
===============================================
    Products Grid
===============================================
*/
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header h2 {
    font-size: 2rem;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.view-toggles {
    display: flex;
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    color: var(--primary);
    background: var(--bg-color);
}

.view-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.products-grid.list-view .product-card {
    flex-direction: row;
    align-items: center;
}

.products-grid.list-view .product-img-wrapper {
    width: 200px;
    padding-top: 0;
    height: 150px;
    flex-shrink: 0;
}

.products-grid.list-view .product-img {
    position: relative;
    height: 100%;
}

.products-grid.list-view .product-info {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: calc(100% - 200px);
    gap: 15px;
}

.products-grid.list-view .product-title {
    flex: 1;
    margin-bottom: 0;
}

.products-grid.list-view .product-img-wrapper .stock-badge {
    top: auto !important;
    bottom: 12px;
    right: 12px;
}

.products-grid.list-view .product-price {
    margin-bottom: 0;
    white-space: nowrap;
}

.products-grid.list-view .price-compare-btn {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
}

.product-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-img-wrapper {
    position: relative;
    padding-top: 75%;
    /* 4:3 aspect ratio */
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.stock-in {
    background: var(--success);
}

.stock-out {
    background: var(--danger);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: auto;
}

.price-compare-btn {
    width: 100%;
    padding: 10px;
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.price-compare-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 
===============================================
    Modal (Price Comparison)
===============================================
*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface-color);
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 45px rgba(0,0,0,0.2), 0 0 20px rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    opacity: 0;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* AI Modal Customization */
#aiModal .modal-content {
    box-shadow: 0 15px 45px rgba(0,0,0,0.3), 0 0 40px var(--core-glow);
    border: 1px solid var(--core);
    background: linear-gradient(145deg, var(--surface-color), var(--bg-color));
}

#navAuthModal .modal-content {
    padding: 30px 40px;
    border-radius: 24px;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-header h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-color);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    z-index: 10;
}

.close-modal:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 30px;
}

.modal-product-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-product-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.modal-product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-product-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table tr {
    transition: background 0.2s;
}

.comparison-table tr:hover {
    background: var(--bg-color);
}

.comparison-table tr.best-price {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
}

.seller-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-best {
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: bold;
}

.seller-price {
    font-size: 1.2rem;
    font-weight: 700;
}

.buy-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.buy-btn.own-store {
    background: var(--primary);
    color: white;
}

.buy-btn.own-store:hover {
    background: var(--primary-hover);
}

.buy-btn.other-store {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.buy-btn.other-store:hover {
    background: var(--primary);
    color: white;
}

/* Footer */
footer {
    background: var(--surface-color);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        position: static; /* Mobilde yukarı sabitlenmesin */
        padding: 10px 0;
    }

    .nav-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 30px;
    }

    .search-bar {
        order: 3;
        margin-top: 5px;
        max-width: 100%;
    }

    .hero {
        padding: 40px 0 40px; /* Navbar static olduğu için üst boşluğu azaltıyoruz */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-tabs {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        overflow: visible;
        white-space: normal;
    }

    /* List View - Mobile Compact Design */
    .products-grid.list-view .product-card {
        flex-direction: row;
        padding: 10px;
        align-items: stretch;
    }

    .products-grid.list-view .product-img-wrapper {
        width: 110px;
        height: 110px;
        padding-top: 0;
        flex-shrink: 0;
        border-radius: var(--radius-md);
    }

    .products-grid.list-view .product-img-wrapper .product-category {
        display: none; /* Mobilde çok küçük görsellerde yazıyı gizle */
    }

    .products-grid.list-view .product-img-wrapper .stock-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        bottom: 5px;
        right: 5px;
    }

    .products-grid.list-view .product-info {
        width: calc(100% - 110px);
        padding: 0 0 0 15px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 5px;
    }

    .products-grid.list-view .product-title {
        font-size: 0.95rem;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .products-grid.list-view .product-price {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .products-grid.list-view .price-compare-btn {
        width: 100%;
        padding: 8px;
        font-size: 0.8rem;
        margin-top: auto;
    }

    .modal-product-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 5px;
        font-size: 0.85rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* 
===============================================
    Cart Sidebar
===============================================
*/
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--surface-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.close-cart:hover {
    color: var(--danger);
}

.cart-items {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 50px;
    font-style: italic;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: auto;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-color);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.qty-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.qty-btn:hover {
    color: var(--primary);
}

.remove-item {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* 
===============================================
    AI Asistan Modülü
===============================================
*/
.ai-assistant-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    z-index: 900;
    transition: all 0.3s ease;
}

.ai-assistant-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.6);
}

.ai-assistant-btn i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); text-shadow: 0 0 10px rgba(255,255,255,0.8); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .ai-assistant-btn {
        bottom: 20px;
        left: 20px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Responsive Fixes for Mobile Layout */
html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .navbar { min-height: auto; padding: 15px 15px; }
    .nav-content { flex-direction: column; gap: 15px; align-items: stretch; padding: 0 5px; }
    .search-bar { width: 100%; max-width: none; }
    .nav-links { width: 100%; justify-content: space-around; padding: 5px 10px; }
    
    .hero { padding: 150px 0 60px; }
    .hero h1 { font-size: 2rem !important; }
    .core-prompt-container { width: 100%; }
    
    .products-grid { grid-template-columns: 1fr; }
    
    .modal-content { width: 95% !important; margin: 0 auto; padding: 15px; }
    .modal-body { padding: 15px !important; }

    table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }
    
    .products-grid.list-view .product-card { flex-direction: row; align-items: center; }
    .products-grid.list-view .product-img-wrapper { width: 120px; height: 120px; padding-top: 0; flex-shrink: 0; }
    .products-grid.list-view .product-info { width: calc(100% - 120px); padding: 10px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .products-grid.list-view .product-title { font-size: 0.95rem; white-space: normal; }
    .products-grid.list-view .product-price { font-size: 0.9rem; }
    .products-grid.list-view .price-compare-btn { font-size: 0.8rem; padding: 8px 12px; margin-top: 5px; }
}