/* Hepsiburada Teması - Tam Yenilenmiş Modern Tasarım */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --hb-orange: #FF6600;
    --hb-orange-dark: #E55A00;
    --hb-orange-light: #FF8533;
    --hb-green: #00A859;
    --hb-green-dark: #008A4A;
    --hb-green-light: #00C96B;
    --hb-blue: #0066CC;
    --hb-blue-light: #3385CC;
    --hb-purple: #7B2CBF;
    --hb-pink: #E91E63;
    --hb-red: #FF1744;
    --hb-yellow: #FFB800;
    --hb-yellow-light: #FFD54F;
    --accent: #FF1744;
    --success: #00A859;
    --warning: #FFB800;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: 14px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Hepsiburada Stili Yenilendi */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--hb-orange);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--hb-orange) 0%, var(--hb-green) 50%, var(--hb-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 4px rgba(255, 102, 0, 0.2);
}

.navbar-search {
    flex: 1;
    max-width: 700px;
    display: flex;
    gap: 0;
    border: 3px solid var(--hb-orange);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
}

.navbar-search input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    outline: none;
    font-size: 15px;
    background: var(--white);
}

.navbar-search input::placeholder {
    color: var(--gray-400);
    font-weight: 500;
}

.navbar-search button {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--hb-orange) 0%, var(--hb-orange-dark) 100%);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
}

.navbar-search button:hover {
    background: linear-gradient(135deg, var(--hb-orange-dark) 0%, var(--hb-orange) 100%);
    transform: scale(1.05);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    font-size: 28px;
    text-decoration: none;
    color: var(--gray-800);
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE0B2 100%);
}

.cart-icon:hover {
    background: linear-gradient(135deg, var(--hb-orange-light) 0%, var(--hb-orange) 100%);
    color: var(--white);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--hb-red) 0%, var(--hb-pink) 100%);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 4px 8px rgba(255, 23, 68, 0.4);
    border: 2px solid var(--white);
}

.user-menu {
    position: relative;
}

.user-button {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border: 2px solid var(--hb-blue);
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--hb-blue);
    font-weight: 700;
    transition: all 0.3s;
}

.user-button:hover {
    background: linear-gradient(135deg, var(--hb-blue) 0%, var(--hb-blue-light) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-radius: 16px;
    min-width: 240px;
    margin-top: 12px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 16px 24px;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.3s;
    font-weight: 600;
    border-bottom: 1px solid var(--gray-100);
}

.user-dropdown a:hover {
    background: linear-gradient(90deg, var(--hb-orange-light) 0%, transparent 100%);
    color: var(--hb-orange-dark);
    padding-left: 30px;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-size: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--hb-orange) 0%, var(--hb-orange-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--hb-green) 0%, var(--hb-green-dark) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 168, 89, 0.4);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-link {
    color: var(--hb-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

.btn-link:hover {
    text-decoration: underline;
    color: var(--hb-orange-dark);
}

/* Hero Section - Ultra Modern */
.hero {
    background: linear-gradient(135deg, var(--hb-orange) 0%, var(--hb-green) 50%, var(--hb-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 24px;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* Stories Section - Modern ve Görsel */
.stories-section {
    padding: 30px 0;
    background: linear-gradient(180deg, #FFF9E6 0%, #FFFFFF 100%);
    border-bottom: 2px solid var(--gray-200);
    margin-top: 0;
}

.stories-container {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex: 0 0 90px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.story-item:hover {
    transform: scale(1.1);
}

.story-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hb-orange) 0%, var(--hb-green) 50%, var(--hb-blue) 100%);
    padding: 4px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.story-item:hover .story-avatar {
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.4);
    transform: rotate(5deg);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--white);
    object-fit: cover;
}

.story-name {
    font-size: 13px;
    color: var(--gray-700);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* Features - Renkli Kartlar */
.features {
    padding: 80px 0;
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9F9F9 100%);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.1), transparent);
    transition: left 0.6s;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--hb-orange);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 24px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s;
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-item h3 {
    margin-bottom: 12px;
    color: var(--gray-900);
    font-size: 20px;
    font-weight: 800;
}

.feature-item p {
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 500;
}

/* Categories - Ultra Renkli */
.categories {
    padding: 80px 0;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
}

.section-title {
    font-size: 42px;
    margin-bottom: 50px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--hb-orange) 0%, var(--hb-green) 50%, var(--hb-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -1px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--gray-900);
    box-shadow: var(--shadow);
    transition: all 0.4s;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.15), transparent);
    transition: left 0.6s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-12px) scale(1.08);
    border-color: var(--hb-orange);
}

.category-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s;
}

.category-card:hover .category-icon {
    transform: scale(1.3) rotate(10deg);
}

.category-card h3 {
    font-weight: 800;
    font-size: 18px;
}

/* Products - Modern Ürün Kartları */
.products {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    border: 3px solid transparent;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--hb-orange) 0%, var(--hb-green) 50%, var(--hb-blue) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
    border-color: var(--hb-orange);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #F5F5F5 0%, #EEEEEE 100%);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    background: linear-gradient(135deg, #FFE0B2 0%, #FFF9C4 100%);
}

.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--hb-red) 0%, var(--hb-pink) 100%);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.5);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.5;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--gray-900);
    font-weight: 700;
}

.product-brand {
    color: var(--hb-blue);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.stars {
    color: var(--hb-yellow);
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(255, 184, 0, 0.3));
}

.review-count {
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 500;
}

.product-price {
    margin-bottom: 16px;
}

.price {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--hb-orange) 0%, var(--hb-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.old-price {
    font-size: 18px;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 12px;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--gray-800);
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    background: var(--white);
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--hb-orange);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

/* Footer - Ultra Modern */
.footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, #1A1A1A 100%);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--hb-orange) 0%, var(--hb-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col a {
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--hb-orange);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 102, 0, 0.2);
    border-radius: 50%;
    transition: all 0.3s;
    padding: 0;
}

.social-links a:hover {
    background: var(--hb-orange);
    transform: scale(1.15) rotate(5deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    font-weight: 500;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, var(--hb-blue) 0%, var(--hb-blue-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.badge-success {
    background: linear-gradient(135deg, var(--hb-green) 0%, var(--hb-green-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, var(--hb-red) 0%, var(--hb-pink) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .navbar-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
        border-radius: 12px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .section-title {
        font-size: 32px;
    }
}

/* Recommended Products Section */
.recommended-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
}

/* You May Also Like Section */
.also-like-section {
    padding: 60px 0;
    background: var(--white);
    border-top: 2px solid var(--gray-200);
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 102, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--hb-orange);
    animation: spin 1s ease-in-out infinite;
}
