/**
 * Component Styles
 * Blade component'lerden taşınan CSS kodları
 */

/* ============================================
   Cart Page Product Item Component
   ============================================ */
.cf-cart-product-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cf-cart-product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.cf-cart-product-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.cf-cart-product-image {
    position: relative;
    flex-shrink: 0;
}

.cf-cart-product-image img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.cf-cart-product-number {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 22px;
    height: 22px;
    background: #e86a72;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(8, 145, 178, 0.4);
}

.cf-cart-product-content {
    flex: 1;
    min-width: 0;
}

.cf-cart-product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.cf-cart-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cf-cart-product-meta span {
    font-size: 0.8125rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cf-cart-product-meta i {
    color: #9ca3af;
    font-size: 0.75rem;
}

.cf-cart-product-action {
    flex-shrink: 0;
}

/* Ekstra Ürünler */
.cf-cart-extra-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
}

.cf-cart-extra-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #374151;
    margin-bottom: 1rem;
}

.cf-cart-extra-header i {
    color: #e86a72;
}

.cf-cart-extra-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.cf-cart-extra-tab {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cf-cart-extra-tab:hover {
    border-color: #e86a72;
    color: #e86a72;
}

.cf-cart-extra-tab.active {
    background: #e86a72;
    border-color: #e86a72;
    color: #fff;
}

.cf-cart-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .cf-cart-extra-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .cf-cart-extra-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .cf-cart-product-inner {
        flex-wrap: wrap;
    }

    .cf-cart-product-content {
        flex-basis: calc(100% - 88px);
    }

    .cf-cart-product-action {
        margin-left: auto;
    }

    .cf-cart-product-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ============================================
   Cart Page Extra Product Item Component
   ============================================ */
.extra-product-card {
    background: #fff;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.extra-product-card.hidden {
    display: none;
}

.extra-product-card:hover {
    border-color: #e86a72;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.15);
}

.extra-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.extra-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.quantity-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.quantity-badge.hidden {
    display: none;
}

.extra-product-info {
    text-align: center;
    width: 100%;
}

.extra-product-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.extra-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #e86a72;
    margin: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover:not(:disabled) {
    background: #e86a72;
    color: #fff;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-btn.minus {
    border-radius: 6px 0 0 6px;
}

.qty-btn.plus {
    border-radius: 0 6px 6px 0;
}

.qty-input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: #fff;
    color: #1f2937;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.extra-product-form {
    width: 100%;
}

.extra-product-form.hidden {
    display: none;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.add-to-cart-btn.update {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.add-to-cart-btn.update:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ============================================
   Delete Button Component
   ============================================ */
.cf-delete-wrapper {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.cf-delete-btn {
    display: inline-flex;
    align-items: center;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    gap: 0.25rem;
    background-color: #ef4444;
    color: white;
    transition: background-color 0.15s;
}

.cf-delete-btn:hover {
    background-color: #dc2626;
}

.cf-delete-btn.hidden {
    display: none;
}

.cf-delete-icon {
    width: 1rem;
    height: 1rem;
}

.cf-delete-confirm {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cf-delete-confirm.hidden {
    display: none;
}

.cf-delete-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cf-btn-yes {
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #dc2626;
    border: none;
    cursor: pointer;
}

.cf-btn-yes:hover {
    background-color: #b91c1c;
}

.cf-btn-no {
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #4b5563;
    border: none;
    cursor: pointer;
}

.cf-btn-no:hover {
    background-color: #374151;
}

/* ============================================
   Order Process Component
   ============================================ */
.order-steps-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 1rem;
    margin-top: 0;
    margin-bottom: 2rem;
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    .order-steps-section {
        padding: 2.5rem 2rem;
    }
}

.order-steps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.order-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.order-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.order-step.disabled {
    pointer-events: none;
}

/* Bağlantı çizgisi */
.step-connector {
    position: absolute;
    top: 28px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.step-connector.filled {
    background: linear-gradient(90deg, #c1ab8c 0%, #c1ab8c 100%);
}

/* İkon wrapper */
.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-icon .icon-svg {
    width: 26px;
    height: 26px;
}

.step-icon .check-icon {
    width: 28px;
    height: 28px;
}

/* Tamamlanan adım */
.order-step.completed .step-icon {
    background: linear-gradient(135deg, #c1ab8c 0%, #a89474 100%);
    color: white;
}

.order-step.completed .step-title {
    color: #a89474;
    font-weight: 600;
}

.order-step.completed .step-number {
    color: #c1ab8c;
}

/* Aktif adım */
.order-step.active .step-icon {
    background: linear-gradient(135deg, #fa7d85 0%, #e86a72 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(250, 125, 133, 0.4);
}

.order-step.active .step-title {
    color: #e86a72;
    font-weight: 700;
}

.order-step.active .step-number {
    color: #fa7d85;
}

/* Bekleyen adım */
.order-step.pending .step-icon {
    background: #fff;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
}

.order-step.pending .step-title {
    color: #94a3b8;
}

.order-step.pending .step-number {
    color: #cbd5e1;
}

/* Başlıklar */
.step-title {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.step-number {
    font-size: 11px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover efektleri */
.order-step:not(.disabled):not(.pending):hover .step-icon {
    transform: scale(1.05);
}

.order-step:not(.disabled):not(.pending):hover .step-title {
    opacity: 0.8;
}

/* Responsive */
@media (min-width: 768px) {
    .step-icon {
        width: 72px;
        height: 72px;
    }

    .step-icon .icon-svg {
        width: 32px;
        height: 32px;
    }

    .step-icon .check-icon {
        width: 34px;
        height: 34px;
    }

    .step-connector {
        top: 36px;
    }

    .step-title {
        font-size: 16px;
        margin-top: 16px;
    }

    .step-number {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .step-title {
        font-size: 11px;
    }

    .step-number {
        display: none;
    }

    .step-icon {
        width: 48px;
        height: 48px;
    }

    .step-icon .icon-svg {
        width: 22px;
        height: 22px;
    }

    .step-connector {
        top: 24px;
    }
}

/* ============================================
   Next Order Step Component
   ============================================ */
.cf-next-step-wrapper {
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .cf-next-step-wrapper {
        flex-direction: row;
        align-items: center;
    }
}

.cf-prev-link {
    padding: 0.75rem 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.cf-prev-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    vertical-align: middle;
}

.cf-button {
    background-color: #fa7d85;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    color: white;
    text-align: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.15s;
}

.cf-button:hover {
    background-color: #e11d48;
    color: white;
}

/* ============================================
   Sidebar Discount Item Component
   ============================================ */
.cf-sidebar-discount-item {
    display: flex;
    justify-content: space-between;
}

.cf-sidebar-discount-left {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cf-sidebar-discount-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #fa7d85;
}

.cf-sidebar-discount-title {
    font-weight: 700;
    font-size: 1rem;
}

.cf-sidebar-discount-price {
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ============================================
   Input Components
   ============================================ */
.cf-input-wrapper {
    position: relative;
}

.cf-input {
    display: block;
    width: 100%;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #111827;
    padding: 0.75rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cf-input:focus {
    outline: none;
    border-color: #e86a72;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.cf-input:disabled {
    background-color: #e5e7eb;
    cursor: not-allowed;
}

.cf-input.has-icon {
    padding-left: 2.75rem;
}

.cf-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    pointer-events: none;
    color: #6b7280;
    display: flex;
    align-items: flex-start;
}

.cf-input-icon .cf-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.cf-textarea {
    min-height: 100px;
    resize: vertical;
}

.cf-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem 1.25rem;
    padding-right: 2.5rem;
}
