/* Custom Styles for E-Commerce */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Remove all text shadows globally */
* {
    text-shadow: none !important;
}

/* Header */
#header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 2.5rem;
    width: 100%;
    flex-shrink: 0;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
}

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

.logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    justify-content: center;
    position: relative;
    z-index: 1200;
    touch-action: manipulation;
}

.header-top {
    position: relative;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 0;
    flex-shrink: 1;
    backdrop-filter: blur(10px);
}

.balance-label {
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.9;
}

.balance-amount {
    font-weight: bold;
    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    flex-shrink: 1;
}

.cart-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8rem;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cart-btn:active {
    transform: translateY(0);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.cart-btn:hover .cart-icon {
    transform: scale(1.1) rotate(-5deg);
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 6px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cart-count-badge:empty {
    display: none;
}

.cart-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Main Content */
#main-content {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page {
    display: none;
    width: 100%;
}

.page.active {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero-section h2 {
    font-size: 1.875rem;
    margin: 0 0 1rem 0;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--dark-text);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-bg);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--light-text);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--dark-text);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
    margin: 0.5rem 0;
}

.product-stock {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--dark-text);
}

.btn-secondary:hover {
    background: #d5dbdb;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--light-text);
}

.close:hover {
    color: var(--dark-text);
}

/* Cart */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cart-item-count {
    color: var(--light-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.cart-items-section {
    min-width: 0;
}

#cartItems {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: #fafafa;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--light-bg);
}

.cart-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cart-item-header {
    margin-bottom: 0.75rem;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.cart-item-category {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
}

.cart-item-price-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cart-item-unit-price {
    font-size: 0.9rem;
    color: var(--light-text);
}

.cart-item-total-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 0.5rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quantity-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-text);
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-shadow: none;
}

.remove-item-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    text-shadow: none;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty h3 {
    font-size: 1.125rem;
    color: var(--dark-text);
    margin: 0 0 0.5rem 0;
}

.cart-empty p {
    color: var(--light-text);
    margin: 0 0 2rem 0;
}

.cart-empty .btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s;
}

.cart-empty .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.cart-summary-section {
    position: sticky;
    top: 100px;
}

.cart-summary-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.cart-summary-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 0.9375rem;
    color: var(--primary-color);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.summary-row.total-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.25rem;
}

.summary-row.total-row span {
    color: var(--success-color);
}

.btn-checkout {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.btn-checkout:active {
    transform: translateY(0);
}

.checkout-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-checkout:hover .checkout-arrow {
    transform: translateX(4px);
}

.cart-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--light-text);
}

.security-icon {
    font-size: 1rem;
}

/* Checkout */
.checkout-content {
    display: grid;
    gap: 2rem;
}

.checkout-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
}

.checkout-section h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 0.9375rem;
}

#shippingInfo {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

#orderNote {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

/* Orders */
#ordersList {
    display: grid;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.order-status.processing {
    background: #fff3cd;
    color: #856404;
}

.order-status.delivered {
    background: #d4edda;
    color: #155724;
}

/* Account Page */
#account-page {
    padding: 2rem 0;
}

.account-header {
    margin-bottom: 2rem;
}

.account-header h2 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin: 0;
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-avatar svg {
    width: 50px;
    height: 50px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.account-info h3 {
    font-size: 1.125rem;
    color: var(--dark-text);
    margin: 0 0 0.5rem 0;
}

.account-role {
    color: var(--light-text);
    font-size: 1rem;
    margin: 0;
    padding: 0.25rem 0.75rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    display: inline-block;
}

.account-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.detail-section h4 {
    font-size: 1.25rem;
    color: var(--dark-text);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.full-width {
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.95rem;
    flex-shrink: 0;
    min-width: 140px;
}

.detail-value {
    color: var(--dark-text);
    font-size: 1rem;
    text-align: right;
    flex: 1;
}

.detail-item.full-width .detail-value {
    text-align: left;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    line-height: 1.6;
}

/* Footer */
#footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color);
    color: white;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

/* Popup Notification */
.popup-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 150px;
    max-width: 250px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateX(200px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.popup-notification.popup-show {
    transform: translateX(0);
    opacity: 1;
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem;
    position: relative;
}

.popup-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popup-message {
    flex: 1;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--dark-text);
}

.popup-close {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--light-text);
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: color 0.2s;
    padding: 0.25rem;
}

.popup-close:hover {
    background: transparent;
    color: var(--dark-text);
}

.popup-notification.popup-success {
    border-left: 4px solid var(--success-color);
}

.popup-notification.popup-error {
    border-left: 4px solid var(--danger-color);
}

.popup-notification.popup-warning {
    border-left: 4px solid var(--warning-color);
}

.popup-notification.popup-info {
    border-left: 4px solid var(--secondary-color);
}

/* Quantity Input Group */
.quantity-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quantity-input-group label {
    font-size: 0.9rem;
    color: var(--dark-text);
    font-weight: 500;
}

.quantity-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Responsive - Tablet (768px ve altı) */
@media (max-width: 768px) {
    #header {
        padding: 1rem 1.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }

    .header-top {
        display: flex;
    }

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

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        color: white;
        font-size: 0.8rem;
    }

    .logo {
        height: 45px;
        max-width: 180px;
    }

    .header-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .balance-display {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
        flex: 1;
        min-width: 0;
    }

    .balance-label {
        font-size: 0.65rem;
    }

    .balance-amount {
        font-size: 0.7rem;
        max-width: 120px;
    }

    .cart-btn {
        padding: 0.6rem 1rem;
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .cart-icon {
        width: 22px;
        height: 22px;
    }

    .cart-text {
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h2 {
        font-size: 1.3125rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    #main-content {
        padding: 0 1rem;
        margin: 1rem auto;
        width: 100%;
    }

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

    .product-card {
        border-radius: 8px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .category-filters {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .cart-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-summary-section {
        position: static;
    }

    .cart-summary-card {
        position: static;
    }

    .account-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .account-avatar {
        width: 70px;
        height: 70px;
    }

    .account-avatar svg {
        width: 40px;
        height: 40px;
    }

    .account-info h3 {
        font-size: 1.25rem;
    }

    .account-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-section {
        padding: 1.25rem;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-label {
        min-width: auto;
    }

    .detail-value {
        text-align: left;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f0f0f0;
    }

    .cart-header h2 {
        font-size: 1.5rem;
    }

    .checkout-section {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10% auto;
    }

    .order-card {
        padding: 1.5rem;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Responsive - Mobil (480px ve altı) */
@media (max-width: 480px) {
    #header {
        padding: 1rem 1rem;
    }

    .logo {
        height: 40px;
        max-width: 150px;
    }

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

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 0.875rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        color: white;
        font-size: 0.75rem;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }

    .balance-display {
        flex: 1;
        justify-content: center;
        min-width: 0;
        font-size: 0.65rem;
    }

    .balance-label {
        font-size: 0.6rem;
    }

    .balance-amount {
        max-width: 100px;
        font-size: 0.65rem;
    }

    .cart-btn {
        padding: 0.5rem 0.75rem;
        gap: 0.4rem;
        font-size: 0.7rem;
    }

    .cart-icon {
        width: 20px;
        height: 20px;
    }

    .cart-text {
        display: none;
    }

    .cart-count-badge {
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }

    .hero-section {
        padding: 1.5rem 0.75rem;
    }

    .hero-section h2 {
        font-size: 1.125rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    #main-content {
        padding: 0 0.75rem;
        margin: 0.5rem auto;
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-image {
        height: 200px;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.75rem;
    }

    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cart-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cart-header h2 {
        font-size: 1.5rem;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-name {
        font-size: 1rem;
    }

    .cart-item-total-price {
        font-size: 1.1rem;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #f0f0f0;
    }

    .quantity-control {
        gap: 0.5rem;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .remove-item-btn {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .cart-summary-card {
        padding: 1.5rem;
    }

    .cart-summary-card h3 {
        font-size: 1.1rem;
    }

    .btn-checkout {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .checkout-content {
        gap: 1rem;
    }

    .checkout-section {
        padding: 1rem;
    }

    .checkout-section h3 {
        font-size: 0.825rem;
    }

    #orderNote {
        min-height: 80px;
        padding: 0.75rem;
    }

    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 1rem;
        max-height: 100vh;
        overflow-y: auto;
    }

    .close {
        font-size: 1.5rem;
        right: 0.5rem;
        top: 0.5rem;
    }

    .order-card {
        padding: 1rem;
    }

    .order-status {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .page h2 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    /* Mobil için touch-friendly butonlar */
    button,
    .btn-primary,
    .btn-secondary,
    .filter-btn {
        min-height: 44px; /* iOS touch target önerisi */
        touch-action: manipulation;
    }

    /* Mobil için daha büyük tıklama alanları */
    .product-card {
        cursor: pointer;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    /* Popup mobil için */
    .popup-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    .popup-content {
        padding: 1rem;
    }

    .popup-message {
        font-size: 0.9rem;
    }

    .login-container {
        padding: 2rem 1.5rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-logo {
        max-width: 120px;
    }

    .admin-product-card {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1.25rem;
    }

    .admin-product-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.75rem;
    }

    .admin-product-info p,
    .admin-product-info h4 {
        width: 100%;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    #admin-tab-users .admin-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #admin-tab-users .admin-actions > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    #admin-tab-users .admin-actions input,
    #admin-tab-users .admin-actions select {
        width: 100%;
    }

    .admin-product-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .admin-stock-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Tablet Landscape (1024px ve altı) */
@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

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

    #main-content {
        padding: 0 1.5rem;
        width: 100%;
    }
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f5f5;
    padding: 2rem;
}

.login-container {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    color: white;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
}

.login-header h2 {
    font-size: 2rem;
    color: white;
    margin: 0 0 0.5rem 0;
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.form-group input {
    padding: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
}

.form-group input:focus {
    outline: none;
    border-color: white;
    background: white;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.forgot-password-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Admin Panel */
#admin-page {
    padding: 2rem 0;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h2 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin: 0;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Admin Tab Buttons */
.admin-tab-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-text);
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.admin-tab-btn:hover {
    background: #f5f5f5;
    border-color: var(--secondary-color);
}

.admin-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    border-bottom-color: white;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Admin Notification Badge */
.admin-notification-badge {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 999;
    cursor: pointer;
}

.notification-icon {
    position: relative;
    background: var(--danger-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
}

.notification-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6);
}

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

.notification-tooltip {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.admin-notification-badge:hover .notification-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .admin-notification-badge {
        top: 80px;
        right: 10px;
    }
    
    .notification-icon {
        width: 45px;
        height: 45px;
    }
}

.admin-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.admin-section h3 {
    font-size: 1.125rem;
    color: var(--dark-text);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-product-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    gap: 1.5rem;
}

.admin-product-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.admin-product-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.admin-product-info p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.admin-product-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-stock-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.admin-stock-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.admin-stock-card p {
    margin: 0.25rem 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.admin-balance-control {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-trade-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    gap: 1.5rem;
}

.admin-trade-info {
    flex: 1;
}

.admin-trade-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.admin-trade-info p {
    margin: 0.25rem 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.admin-trade-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.purchase-limit-warning {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.admin-order-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.admin-order-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.admin-order-info p {
    margin: 0.25rem 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.admin-return-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.admin-return-info {
    flex: 1;
}

.admin-return-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.admin-return-info p {
    margin: 0.25rem 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.admin-return-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Yüksek çözünürlüklü ekranlar için */
@media (min-width: 1200px) {
    .header-content,
    #main-content {
        max-width: 1400px;
    }
}

