/* ========== THEME VARIABLES ========== */
:root {
    --primary-color: #ff6000;
    --success-color: #00a046;
    --warning-color: #ffa900;
    --danger-color: #dc3545;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 0.9375rem;  /* 15px */
    --font-size-md: 1rem;         /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.02em;
}

/* ========== MODERN HEADER STYLES ========== */
.modern-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.header-top-bar a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.header-top-bar a:hover {
    opacity: 1;
    text-decoration: underline;
}

.header-main {
    padding: 1rem 0;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 40px;
}

.modern-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.modern-search-input {
    width: 100%;
    padding: 0.875rem 3.5rem 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 96, 0, 0.1);
    border-radius: 50px; /* Focus durumunda da aynı border-radius */
}

.modern-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.modern-search-btn {
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modern-search-btn:hover {
    background: #e55500;
}

.modern-search-btn i {
    font-size: 1.125rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.header-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.header-action-btn i {
    font-size: 1.375rem;
}

.header-action-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.header-action-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.header-action-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger-color);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
}

.header-nav {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 0;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu-toggle i {
    font-size: 1.5rem;
}

.mobile-search {
    display: none;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border-color);
}

.mobile-search .modern-search-input {
    border-radius: 12px;
}

.mobile-search .modern-search-input:focus {
    border-radius: 12px; /* Focus durumunda da aynı border-radius */
}

/* Dropdown Styles */
.header-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-width: 320px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.dropdown-menu-custom.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}

.cart-item:hover {
    background: var(--bg-light);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9375rem;
}

.dropdown-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.dropdown-footer .btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary-custom:hover {
    background: #e55500;
    border-color: #e55500;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.category-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.category-item i,
.category-item svg {
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* ========== FOOTER STYLES ========== */
.footer-content {
    background: white;
}

.footer-bottom {
    background: #1a1a1a;
}

/* Responsive */
@media (max-width: 991px) {
    .header-top-bar {
        display: none;
    }

    .modern-search-wrapper {
        display: none;
    }

    .mobile-search {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-action-text {
        display: none;
    }

    .header-action-btn {
        padding: 0.625rem;
        border-radius: 8px;
    }

    .header-nav {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }
}

@media (max-width: 575px) {
    .header-logo img {
        height: 32px;
    }

    .header-action-btn i {
        font-size: 1.25rem;
    }
}


/* Form Elements - Focus durumunda şekil değişmesin */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
.form-control:focus,
.modern-search-input:focus {
    border-radius: inherit !important; /* Parent'tan gelen border-radius'u koru */
}

/* Eğer parent'ta border-radius yoksa, varsayılan değerleri kullan */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select,
.form-control {
    border-radius: 8px; /* Varsayılan border-radius */
}

/* Search input için özel border-radius */
.modern-search-input {
    border-radius: 50px !important; /* Her durumda yuvarlak */
}

.mobile-search .modern-search-input {
    border-radius: 12px !important; /* Mobilde daha az yuvarlak */
}
