/*
Theme Name: Trendyol Pro
Theme URI: https://trendyol-theme.com
Author: Trendyol Theme Team
Author URI: https://trendyol-theme.com
Description: Trendyol.com'a benzer profesyonel e-ticaret teması. Tam WooCommerce desteği, modern tasarım, hızlı ve güvenli alışveriş deneyimi.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trendyol-pro
Tags: e-commerce, woocommerce, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS VARIABLES - Trendyol Renk Paleti
============================================ */

:root {
    --primary-orange: #F27A1A;
    --dark-orange: #E8661C;
    --light-orange: #FFF4ED;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #E6E6E6;
    --bg-gray: #F7F7F8;
    --bg-white: #FFFFFF;
    --success-green: #00AA5B;
    --error-red: #E74C3C;
    --discount-red: #DB2B39;
    --rating-yellow: #FFB800;
    --link-blue: #1890FF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
============================================ */

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

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-gray);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

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

/* ============================================
   TOP ANNOUNCEMENT BAR
============================================ */

.top-announcement {
    background: linear-gradient(90deg, #7E22CE 0%, #9333EA 50%, #7E22CE 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    color: var(--bg-white);
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.top-announcement a {
    color: var(--bg-white);
    text-decoration: underline;
}

/* ============================================
   HEADER STYLES
============================================ */

.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Header Bar */
.header-top {
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 12px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-links a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Main Header */
.header-main {
    padding: 12px 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Logo */
.site-logo {
    flex: 0 0 auto;
}

.site-logo a {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-orange);
    letter-spacing: -1px;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 800px;
}

.search-wrapper {
    position: relative;
    display: flex;
}

.search-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 50px 12px 16px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary-orange);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: var(--primary-orange);
    color: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 0 20px;
    font-weight: 600;
}

.search-btn:hover {
    background: var(--dark-orange);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    position: relative;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.header-action:hover {
    background: var(--bg-gray);
}

.header-action-icon {
    font-size: 20px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-orange);
    color: var(--bg-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Navigation */
.main-navigation {
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-menu-btn {
    background: var(--bg-white);
    color: var(--text-primary);
    padding: 12px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--border-color);
}

.category-menu-btn:hover {
    color: var(--primary-orange);
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    flex: 1;
}

.primary-menu > li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a {
    background: var(--light-orange);
    color: var(--primary-orange);
}

.menu-badge {
    background: var(--discount-red);
    color: var(--bg-white);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 700;
}

/* Mega Menu Dropdown */
.primary-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    padding: 8px 0;
    z-index: 100;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu li .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 13px;
}

.primary-menu li .sub-menu li a:hover {
    background: var(--bg-gray);
    color: var(--primary-orange);
}

/* ============================================
   CATEGORY CIRCLES
============================================ */

.category-circles {
    background: var(--bg-white);
    padding: 20px 0;
    margin: 20px 0;
    border-radius: var(--radius-lg);
}

.category-circles-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.category-circles-wrapper::-webkit-scrollbar {
    display: none;
}

.category-circle-item {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
}

.category-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--bg-white) 100%);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 32px;
    transition: all 0.3s ease;
}

.category-circle-item:hover .category-circle {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.category-circle-name {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   PRODUCT SECTION
============================================ */

.products-section {
    margin: 20px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--bg-white);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-link:hover {
    color: var(--dark-orange);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Product Card - Trendyol Style */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

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

/* Product Badges */
.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.product-badge {
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-badge.discount {
    background: var(--discount-red);
    color: var(--bg-white);
}

.product-badge.sponsored {
    background: var(--light-orange);
    color: var(--primary-orange);
}

.product-badge.free-shipping {
    background: var(--success-green);
    color: var(--bg-white);
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    padding-top: 130%;
    overflow: hidden;
    background: var(--bg-gray);
}

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

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

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: all 0.2s;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: var(--light-orange);
    color: var(--primary-orange);
}

.favorite-btn.active {
    background: var(--primary-orange);
    color: var(--bg-white);
}

/* Product Info */
.product-info {
    padding: 12px;
}

.product-brand {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}

.product-name {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: var(--rating-yellow);
    font-size: 12px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-light);
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-discount-rate {
    font-size: 12px;
    color: var(--discount-red);
    font-weight: 700;
}

.product-installment {
    font-size: 11px;
    color: var(--success-green);
    margin-bottom: 8px;
}

.cargo-info {
    font-size: 11px;
    color: var(--success-green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cargo-info i {
    font-size: 14px;
}

/* ============================================
   CATEGORY DISCOUNT CARDS
============================================ */

.category-discount-section {
    margin: 30px 0;
}

.category-discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.category-discount-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.category-discount-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--discount-red);
    color: var(--bg-white);
    font-size: 18px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.category-discount-content {
    padding: 16px;
    text-align: center;
}

.category-discount-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.category-discount-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   BANNER SECTION
============================================ */

.banner-section {
    margin: 30px 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.banner-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.banner-item:hover {
    transform: translateY(-4px);
}

.banner-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
}

.banner-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-subtitle {
    font-size: 16px;
    color: var(--bg-white);
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.banner-cta {
    background: var(--bg-white);
    color: var(--primary-orange);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-block;
    align-self: flex-start;
}

.banner-cta:hover {
    background: var(--primary-orange);
    color: var(--bg-white);
}

/* ============================================
   FOOTER - Trendyol Style
============================================ */

.site-footer {
    background: var(--bg-white);
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

/* Footer Top - Widget Area */
.footer-top {
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border-color);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-widget h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-widget ul {
    list-style: none;
}

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

.footer-widget ul li a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-widget ul li a:hover {
    color: var(--primary-orange);
}

.footer-widget p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* Social Media Icons */
.social-media {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--primary-orange);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Mobile App Section */
.mobile-app-section {
    margin-top: 20px;
}

.app-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.app-btn {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.2s;
}

.app-btn:hover {
    transform: scale(1.05);
}

/* Footer Middle - Payment & Security */
.footer-middle {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-middle-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.payment-methods h4,
.security-badges h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.payment-icons,
.security-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-icon,
.security-icon {
    height: 32px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s;
}

.payment-icon:hover,
.security-icon:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer Bottom - Legal & Copyright */
.footer-bottom {
    padding: 20px 0;
    background: var(--bg-gray);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.footer-legal-links li a {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

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

.footer-copyright {
    font-size: 12px;
    color: var(--text-light);
}

/* Etbis Logo */
.etbis-logo {
    height: 40px;
    width: auto;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .header-main-content {
        flex-wrap: wrap;
    }
    
    .header-search {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 12px;
    }
    
    .primary-menu {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .header-top {
        display: none;
    }
    
    .header-actions {
        gap: 12px;
    }
    
    .header-action-text {
        display: none;
    }
    
    .category-circles {
        margin: 12px 0;
        padding: 12px 0;
    }
    
    .category-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .section-header {
        padding: 12px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-middle-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-grid {
        gap: 12px;
    }
    
    .banner-item {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .site-logo a {
        font-size: 24px;
    }
    
    .search-input {
        font-size: 13px;
        padding: 10px 40px 10px 12px;
    }
    
    .product-name {
        font-size: 12px;
        height: 32px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .category-discount-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
============================================ */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   UTILITY CLASSES
============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none; }

/* WooCommerce Override */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--primary-orange);
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--primary-orange);
}
