/* =========================================
   1. Product Listing Styles
   ========================================= */

.page-header {
    background: #f8f9fa;
    padding: 30px 0 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
}

.breadcrumb {
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #7dd3c0;
    text-decoration: none;
}

.product-filters {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

.products-container {
    padding: 40px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee; /* Replaced box-shadow */
}

/* Removed hover effects on product-card */

.product-image {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Removed hover zoom on image */

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 35px;
    height: 35px;
}

.product-badge i {
    font-size: 16px;
}

/* Badge Renkleri - Ana sayfa ile aynı */
.badge-new {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    /* Removed animation */
}

.badge-popular {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.badge-discount {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.badge-limited {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: #2d3436;
}

.badge-warning {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.badge-out {
    background: linear-gradient(135deg, #636e72, #2d3436);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: #7dd3c0;
}

.product-price {
    font-size: 24px;
    color: #7dd3c0;
    font-weight: bold;
    margin-bottom: 20px;
}

.price-range {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.add-to-cart-btn {
    background: linear-gradient(45deg, #7dd3c0, #6bc4b0);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 15px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(45deg, #6bc4b0, #5ab3a0);
    /* Removed transform */
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.category-filter {
    margin-bottom: 20px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-pill {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 14px;
}

.category-pill.active,
.category-pill:hover {
    background: #7dd3c0;
    color: white;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 60px;
    text-align: center;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 12px 16px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 48px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    border-color: #7dd3c0;
    color: #7dd3c0;
    /* Removed transform */
}

.pagination-btn.active {
    background: #7dd3c0;
    border-color: #7dd3c0;
    color: white;
}

.pagination-dots {
    padding: 12px 8px;
    color: #999;
    font-weight: 600;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #7dd3c0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    /* products-grid removed from here to allow 2 columns on tablets */
    .products-grid {
        gap: 30px;
    }
    
    .category-pills {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 250px;
    }
}

/* =========================================
   2. Product Detail Styles
   ========================================= */

.product-detail-container {
    padding: 30px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-gallery {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.main-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eee; /* Replaced box-shadow */
    position: relative;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.product-badge-main {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 40px;
    height: 40px;
}

.product-badge-main i {
    font-size: 18px;
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    flex: none;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: #7dd3c0;
    /* Removed transform */
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 32px;
    color: #2d3436;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.short-description {
    font-size: 16px;
    color: #636e72;
    margin-bottom: 25px;
    line-height: 1.6;
}

.price-section {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.price-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.current-price {
    font-size: 36px;
    color: #7dd3c0;
    font-weight: bold;
    margin-bottom: 10px;
}

.old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 0;
}

.discount-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.wishlist-btn {
    background: white;
    border: 2px solid #7dd3c0;
    color: #7dd3c0;
    padding: 20px;
    border-radius: 15px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    background: #7dd3c0;
    color: white;
    /* Removed transform */
}

.product-tabs {
    margin: 50px 0;
}

.product-tabs .container {
    background: #fcfcfc;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    background: #f8f9fa;
}

.tab-button {
    padding: 20px 40px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-right: 1px solid #eee;
    transition: all 0.3s;
}

.tab-button:hover {
    background: #fff;
    color: #7dd3c0;
}

.tab-button.active {
    background: #fff;
    color: #7dd3c0;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
}

.tab-content {
    display: none;
    line-height: 1.8;
    color: #555;
    font-size: 16px;
    background: white;
    padding: 30px;
    border-radius: 0 0 15px 15px;
    min-height: 200px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

.description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 10px 0;
    max-width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.feature-item {
    padding: 20px 15px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.feature-item:hover {
    border-color: #7dd3c0;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(125, 211, 192, 0.2);
}

.feature-item i {
    font-size: 28px;
    margin-bottom: 15px;
    color: #7dd3c0;
}

.feature-item strong {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.stock-info {
    padding: 15px;
    margin: 20px 0;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.stock-in { background: #d4edda; color: #155724; border: 2px solid #c3e6cb; }
.stock-limited { background: #fff3cd; color: #856404; border: 2px solid #ffeaa7; }
.stock-warning { background: #f8d7da; color: #721c24; border: 2px solid #f5c6cb; }
.stock-out { background: #f8d7da; color: #721c24; border: 2px solid #f5c6cb; }

/* Product Variants Styles */
.product-variants, .custom-size-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.product-variants h4, .custom-size-section h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.variant-item {
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.variant-item:hover {
    border-color: #7dd3c0;
    /* Removed transform and box-shadow */
}

.variant-item.selected {
    border-color: #7dd3c0;
    background: linear-gradient(135deg, #f8fdfc, #e8f8f5);
}

.variant-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.variant-price {
    color: #7dd3c0;
    font-weight: bold;
    margin-bottom: 5px;
}

.variant-stock {
    font-size: 12px;
    color: #666;
}

/* Custom Size Styles */
.size-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group-custom {
    display: flex;
    flex-direction: column;
}

.input-group-custom.align-end {
    grid-column: span 2;
}

.input-group-custom label {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fff;
}

.input-wrapper input:focus {
    border-color: #7dd3c0;
    box-shadow: 0 0 0 3px rgba(125, 211, 192, 0.1);
    outline: none;
}

.input-wrapper .unit {
    position: absolute;
    right: 12px;
    color: #999;
    font-size: 13px;
    pointer-events: none;
}

.calculate-btn {
    padding: 12px;
    background: #7dd3c0;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.calculate-btn:hover {
    background: #6bc4b0;
}

.custom-result-box {
    margin-top: 15px;
    padding: 15px;
    background: #e8f8f5;
    border-radius: 10px;
    border: 1px solid #7dd3c0;
}

.result-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.result-price {
    font-size: 20px;
    font-weight: 700;
    color: #7dd3c0;
}

.result-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 10px;
}

.custom-size-info {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 8px;
    align-items: start;
    line-height: 1.4;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Size Selection Styles */
.size-selection {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.size-selection h4, .size-selection h5 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.size-selection h5 {
    font-size: 16px;
    margin-bottom: 15px;
    margin-top: 0;
}

.standard-sizes {
    margin-bottom: 25px;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.size-option {
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.size-option:hover {
    border-color: #7dd3c0;
    /* Removed transform and box-shadow */
}

.size-option.active {
    border-color: #7dd3c0;
    background: linear-gradient(135deg, #f8fdfc, #e8f8f5);
}

.size-dimensions {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.size-area {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.size-price {
    color: #7dd3c0;
    font-weight: bold;
    font-size: 18px;
}

.custom-size-wrapper {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid #e9ecef;
}

.custom-size-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin: 25px 0;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.custom-size-toggle {
    margin-bottom: 0;
}

.custom-toggle-btn {
    padding: 10px 15px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #eee;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-toggle-btn:hover {
    background: #fff;
    border-color: #7dd3c0;
    color: #7dd3c0;
}

.custom-toggle-btn i {
    margin-right: 8px;
}

.related-products {
    margin-top: 100px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 36px;
    font-weight: 300;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Ürün sayısına göre responsive grid */
.related-grid.items-1 {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
}

.related-grid.items-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 750px;
    margin: 0 auto;
}

.related-grid.items-3 {
    grid-template-columns: repeat(3, 1fr);
}

.related-grid.items-4,
.related-grid.items-5,
.related-grid.items-6 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 768px) {
    .related-grid.items-2,
    .related-grid.items-3 {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
}

.product-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee; /* Replaced box-shadow */
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.product-item:hover {
    /* Removed transform and box-shadow */
}

.product-item .product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-image img {
    /* Removed transform */
}

.product-item .product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 35px;
    height: 35px;
}

.product-item .product-badge i {
    font-size: 16px;
}

.product-item .product-info {
    padding: 15px;
    text-align: center;
}

.product-item .product-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-item .price-range {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}

.product-item .product-price {
    font-size: 20px;
    color: #7dd3c0;
    font-weight: bold;
    margin: 0;
}

/* Image Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.lightbox-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    min-width: 70vw;
    min-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    /* Removed box-shadow */
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    /* Removed transform */
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0.7;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    /* Removed transform */
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 15px;
}

/* Clickable cursor for images */
.main-image img,
.thumbnail img {
    cursor: pointer;
    transition: transform 0.3s;
}

.main-image:hover img {
    /* Removed transform */
}

.thumbnail:hover img {
    /* Removed transform */
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-info h1 {
        font-size: 32px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: -50px;
    }

    .lightbox-next {
        right: -50px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
    }
}


/* =========================================
   4. Checkout Page Styles
   ========================================= */

.checkout-container {
    padding: 60px 0;
    min-height: 500px;
}

.checkout-header {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.checkout-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.checkout-form {
    background: white;
    border-radius: 10px;
    padding: 40px;
    border: 1px solid #eee; /* Replaced box-shadow */
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #7dd3c0;
    padding-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #7dd3c0;
    outline: none;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.address-same {
    margin: 20px 0;
}

.address-same label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.payment-methods {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.payment-option {
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #7dd3c0;
}

.payment-option.active {
    border-color: #7dd3c0;
    background: #f0fffe;
}

.payment-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.payment-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.balance-info {
    background: #e8f5e8;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #2d5a2d;
    margin-top: 10px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
}

.order-summary {
    background: white;
    border-radius: 10px;
    padding: 30px;
    border: 1px solid #eee; /* Replaced box-shadow */
    position: sticky;
    top: 100px;
    max-height: fit-content;
}

.summary-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.item-details {
    font-size: 12px;
    color: #666;
}

.item-price {
    font-weight: 600;
    color: #7dd3c0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    border-top: 2px solid #7dd3c0;
    padding-top: 20px;
    margin-top: 15px;
}

.summary-row.total span:last-child {
    color: #7dd3c0;
}

.place-order-btn {
    width: 100%;
    background: linear-gradient(45deg, #7dd3c0, #6bc4b0);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.place-order-btn:hover {
    background: linear-gradient(45deg, #6bc4b0, #5ab3a0);
    /* Removed transform and box-shadow */
}

.place-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.discount-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #28a745;
    font-weight: 600;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   5. Order Success Styles
   ========================================= */

.success-container {
    padding: 60px 0;
    min-height: 500px;
}

.success-content {
    background: white;
    border-radius: 15px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 30px;
    animation: successPulse 2s ease-in-out infinite alternate;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.success-title {
    font-size: 32px;
    color: #28a745;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.order-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.order-info h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
    border-bottom: 2px solid #7dd3c0;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.payment-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-bekliyor {
    background: #fff3cd;
    color: #856404;
}

.status-onaylandi {
    background: #d4edda;
    color: #155724;
}

.next-steps {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.next-steps h4 {
    color: #0c5460;
    margin-bottom: 15px;
    font-size: 18px;
}

.next-steps ul {
    color: #0c5460;
    text-align: left;
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(45deg, #7dd3c0, #6bc4b0);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #6bc4b0, #5ab3a0);
}

.btn-secondary {
    background: white;
    color: #7dd3c0;
    border: 2px solid #7dd3c0;
}

.btn-secondary:hover {
    background: #7dd3c0;
    color: white;
}

.bank-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.bank-info h4 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 18px;
}

.bank-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.bank-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.bank-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .success-content {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .success-title {
        font-size: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* =========================================
   6. Order Detail Styles
   ========================================= */

.detail-container {
    padding: 60px 0;
    min-height: 80vh;
    background: #f8f9fa;
}

.detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.detail-header {
    background: linear-gradient(135deg, #7dd3c0, #6bc4b0);
    color: white;
    padding: 40px;
    text-align: center;
}

.order-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.order-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.detail-content {
    padding: 40px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.info-card .icon {
    font-size: 24px;
    color: #7dd3c0;
    margin-bottom: 15px;
}

.info-card .title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-card .value {
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.status-timeline {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

.timeline-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 6px;
    background: #e9ecef;
    z-index: 1;
    border-radius: 3px;
}

.timeline::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 6px;
    width: var(--progress-width, 20%);
    max-width: calc(100% - 80px);
    background: linear-gradient(to right, #28a745, #7dd3c0);
    z-index: 2;
    border-radius: 3px;
    transition: all 0.8s ease;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
    flex: 1;
}

.timeline-step .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    position: relative;
}

.timeline-step.completed .step-icon {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.timeline-step.active .step-icon {
    background: linear-gradient(135deg, #7dd3c0, #6bc4b0);
    color: white;
    border-color: #7dd3c0;
}

.timeline-step.active .step-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 3px solid transparent;
    border-radius: 12px;
    background: linear-gradient(135deg, #7dd3c0, #6bc4b0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: progressBorder 2s infinite;
}

.timeline-step.pending .step-icon {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e9ecef;
}

.timeline-step .step-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-step.completed .step-label {
    color: #28a745;
}

.timeline-step.active .step-label {
    color: #7dd3c0;
}

@keyframes progressPulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

@keyframes progressBorder {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Özel Durum Timeline Stilleri */
.special-status-timeline {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.special-status-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-radius: 15px;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.special-status-card.cancelled {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.special-status-card.returned {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
    color: white;
}

.special-status-card .status-icon {
    font-size: 48px;
    opacity: 0.9;
}

.special-status-card .status-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.special-status-card .status-content p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
}

.products-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #7dd3c0;
}

.detay-product-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.detay-product-item:hover {
    /* Removed transform */
}

.detay-product-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.product-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.product-quantity {
    font-size: 14px;
    color: #7dd3c0;
    font-weight: 600;
}

.product-price {
    text-align: right;
}

.product-unit-price {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.product-total-price {
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.order-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-row:last-child {
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #7dd3c0;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

.summary-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.summary-total .summary-label,
.summary-total .summary-value {
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #7dd3c0, #6bc4b0);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #6bc4b0, #5ab3a0);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(45deg, #1e7e34, #155724);
}

.btn-outline {
    background: transparent;
    color: #7dd3c0;
    border: 2px solid #7dd3c0;
}

.btn-outline:hover {
    background: #7dd3c0;
    color: white;
}

.address-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.address-card h4 {
    color: #7dd3c0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.address-card p {
    color: #666;
    line-height: 1.6;
    margin: 5px 0;
}

@media (max-width: 768px) {
    .detail-container {
        padding: 20px 0;
    }
    
    .detail-content {
        padding: 20px;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .timeline {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline::before {
        display: none;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}
