/* c:\xampp\htdocs\temizlikurunleri\assets\css\components.css */

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); cursor: pointer; transition: var(--transition); font-family: inherit; font-size: 15px; font-weight: 600; border: none; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: var(--white); border: 2px solid var(--primary); color: var(--primary); }
.btn-secondary:hover { background: var(--primary-pale); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-blue { background: var(--secondary); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 10px; width: 40px; height: 40px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* PRODUCT CARDS */
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.product-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card-brand { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); margin-bottom: 4px; }
.product-card-name { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; text-decoration: none; }
.product-card-rating { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--gray-500); margin-bottom: 8px; }
.price-group { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-new { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--primary); }
.price-old { font-size: 14px; color: var(--gray-500); text-decoration: line-through; }
.discount-badge { position: absolute; top: 12px; right: 12px; background: var(--danger); color: var(--white); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.product-card-actions { display: flex; gap: 8px; margin-top: auto; }
.fav-btn { color: var(--gray-500); background: var(--gray-100); }
.fav-btn:hover { color: var(--danger); background: #FFEBEE; }

/* CATEGORY CARDS */
.category-card { background: var(--white); border-radius: 12px; padding: 24px 16px; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-icon { font-size: 48px; margin-bottom: 12px; color: var(--primary); }
.category-name { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--dark); }
.category-count { font-size: 14px; color: var(--gray-500); mt-4px; display: block; }

/* GENERAL CARDS */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 20px; }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media(max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-label.required::after { content: '*'; color: var(--danger); margin-left: 4px; }
.form-control, .form-select, .form-textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius); font-family: inherit; font-size: 15px; transition: var(--transition); color: var(--dark); background: var(--white); }
.form-control:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); outline: 3px solid rgba(46, 125, 50, 0.15); }
.form-control::placeholder, .form-textarea::placeholder { color: var(--gray-500); }
select.form-control, .form-select { padding-right: 36px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23616161' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
textarea.form-control, .form-textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; cursor: pointer; }
.input-group { display: flex; position: relative; align-items: center; }
.input-group .input-icon { position: absolute; left: 14px; color: var(--gray-500); font-size: 20px; }
.input-group .form-control.has-icon { padding-left: 40px; }
.form-error { font-size: 14px; color: var(--danger); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-success { font-size: 14px; color: var(--success); margin-top: 4px; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
/* .modal AND .modal-dialog/.modal-content are both supported */
.modal,
.modal-dialog { background: var(--white); border-radius: var(--radius-lg); width: 90vw; max-width: 560px; max-height: 85vh; overflow-y: auto; transform: translateY(30px); transition: transform 0.3s ease; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.modal-content { display: flex; flex-direction: column; min-height: 100%; background: var(--white); border-radius: var(--radius-lg); }
.modal-overlay.active .modal,
.modal-overlay.active .modal-dialog { transform: translateY(0); }
.modal-sm, .modal-dialog.modal-sm { max-width: 400px; }
.modal-lg, .modal-dialog.modal-lg { max-width: 800px; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--white); z-index: 1; }
.modal-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--dark); margin: 0; }
.modal-close { background: transparent; border: none; font-size: 24px; cursor: pointer; color: var(--gray-500); display: flex; align-items: center; justify-content: center; border-radius: var(--radius); width: 36px; height: 36px; }
.modal-close:hover { color: var(--danger); background: #FFEBEE; }
.modal-body { padding: 20px 24px; flex: 1; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: 0; background: var(--white); }

/* TOAST */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--white); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; border-left: 4px solid; min-width: 280px; max-width: 400px; pointer-events: all; transform: translateX(120%); transition: all 0.3s ease; animation: slideInRight 0.3s forwards; }
.toast.show { transform: translateX(0); }
.toast.hiding { opacity: 0; transform: translateX(120%); }
.toast-icon { font-family: 'Material Icons'; font-size: 20px; }
.toast-message { flex: 1; font-size: 14px; font-weight: 500; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--gray-500); }
.toast-success { border-color: var(--success); } .toast-success .toast-icon { color: var(--success); }
.toast-error { border-color: var(--danger); } .toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-color: var(--warning); } .toast-warning .toast-icon { color: var(--warning); }
.toast-info { border-color: var(--info); } .toast-info .toast-icon { color: var(--info); }

/* BADGES */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-primary { background: var(--primary-pale); color: var(--primary); }
.badge-success { background: #E8F5E9; color: var(--success); }
.badge-danger { background: #FFEBEE; color: var(--danger); }
.badge-warning { background: #FFF3E0; color: var(--warning); }
.badge-info { background: #E3F2FD; color: var(--info); }
.badge-dark { background: var(--dark); color: var(--white); }

/* TABLES */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table thead th { background: var(--gray-50); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--dark); font-size: 14px; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; }
.table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.table-striped tbody tr:nth-child(even) { background: var(--gray-50); }
.table-hover tbody tr:hover { background: rgba(46, 125, 50, 0.05); cursor: pointer; }

/* PAGINATION */
.pagination { display: flex; gap: 4px; justify-content: center; align-items: center; margin-top: 40px; }
.page-btn { min-width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--gray-300); font-weight: 600; color: var(--dark); cursor: pointer; transition: var(--transition); text-decoration: none; }
.page-btn:hover:not(.disabled):not(.page-dots) { background: var(--primary-pale); border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.page-btn.page-dots { border: none; background: transparent; cursor: default; }

/* TABS */
.tabs { border-bottom: 1px solid var(--gray-200); margin-bottom: 24px; }
.tab-list { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-btn { padding: 12px 20px; font-weight: 600; color: var(--gray-500); border: none; border-bottom: 2px solid transparent; transition: var(--transition); white-space: nowrap; cursor: pointer; background: transparent; font-size: 15px; }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; margin-top: 0; }
.tab-panel.active { display: block; animation: fadeIn 0.2s; }

/* ALERTS */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border-left: 4px solid; margin-bottom: 16px; }
.alert-success { background: #E8F5E9; border-color: var(--success); }
.alert-danger { background: #FFEBEE; border-color: var(--danger); }
.alert-warning { background: #FFF3E0; border-color: var(--warning); }
.alert-info { background: #E3F2FD; border-color: var(--info); }
.alert-icon { font-family: 'Material Icons'; font-size: 20px; }
.alert-close { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--gray-500); }

/* STARS */
.stars { display: flex; gap: 2px; }
.star { font-family: 'Material Icons'; font-size: 16px; color: var(--gray-300); }
.star.filled { color: #FFC107; }
.star.half { color: #FFC107; position: relative; }
.stars-input .star { cursor: pointer; transition: color 0.2s; }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; margin-bottom: 16px; }
.breadcrumb-item { color: var(--gray-700); text-decoration: none; transition: var(--transition); }
.breadcrumb-item[href]:hover { color: var(--primary); }
.breadcrumb-item:last-child { color: var(--dark); font-weight: 600; cursor: default; }
.breadcrumb-sep { color: var(--gray-400); font-family: 'Material Icons'; font-size: 16px; }

/* LOADING */
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--primary-pale); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
.page-loader { position: fixed; inset: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; transition: opacity 0.3s; }
.page-loader .loader-logo { font-family: var(--font-heading); font-size: 24px; color: var(--primary); font-weight: 700; }
.page-loader.hidden { opacity: 0; pointer-events: none; }

/* QUANTITY */
.qty-counter { display: flex; align-items: center; gap: 0; border: 1px solid var(--gray-300); border-radius: 4px; overflow: hidden; width: fit-content; }
.qty-btn { width: 36px; height: 36px; background: var(--gray-100); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: 'Material Icons'; transition: background 0.2s; }
.qty-btn:hover { background: var(--primary-pale); color: var(--primary); }
.qty-input { width: 50px; height: 36px; text-align: center; border: none; border-left: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); font: inherit; font-weight: 600; outline: none; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 80px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-icon { font-size: 80px; color: var(--gray-300); margin-bottom: 8px; font-family: 'Material Icons'; }
.empty-title { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--dark); }
.empty-subtitle { color: var(--gray-500); max-width: 360px; margin: 0 auto; }

/* SLIDER */
.slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.slides-track { display: flex; transition: transform 0.5s ease; }
.slide { min-width: 100%; position: relative; }
.slide-img { width: 100%; aspect-ratio: 16/5; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 50%, transparent 100%); }
.slide-content { position: absolute; left: 10%; top: 50%; transform: translateY(-50%); max-width: 500px; z-index: 1; }
.slide-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-pale); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; }
.slide-title { font-family: var(--font-heading); font-size: 42px; font-weight: 700; color: var(--dark); line-height: 1.1; margin-bottom: 16px; }
.slide-subtitle { font-size: 18px; color: var(--gray-700); margin-bottom: 24px; }
.slider-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,0.2); cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--primary); width: 28px; border-radius: 5px; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); backdrop-filter: blur(4px); border: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition); z-index: 1; font-family: 'Material Icons'; font-size: 24px; }
.slider-prev:hover, .slider-next:hover { background: var(--white); color: var(--primary); }
.slider-prev { left: 20px; } .slider-next { right: 20px; }
@media (max-width: 768px) {
  .slide-img { aspect-ratio: 4/3; }
  .slide-overlay { background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 100%); }
  .slide-content { left: 5%; right: 5%; top: auto; bottom: 40px; transform: none; text-align: center; }
  .slide-title { font-size: 26px; }
  .slider-prev, .slider-next { display: none; }
}

/* ORDER TIMELINE */
.order-timeline { display: flex; gap: 0; position: relative; margin: 40px 0; }
.timeline-step { flex: 1; text-align: center; position: relative; }
.timeline-step::before { content: ''; height: 2px; background: var(--gray-300); position: absolute; top: 20px; left: 50%; right: -50%; z-index: 0; }
.timeline-step:last-child::before { display: none; }
.timeline-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--gray-300); color: var(--white); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; z-index: 1; position: relative; transition: var(--transition); font-family: 'Material Icons'; font-size: 20px; }
.timeline-label { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.timeline-step.completed .timeline-dot { background: var(--success); }
.timeline-step.completed::before { background: var(--success); }
.timeline-step.active .timeline-dot { background: var(--primary); animation: pulse 2s infinite; }
.timeline-step.active .timeline-label { color: var(--primary); }

/* CART SIDEBAR */
.cart-sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1500; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-sidebar-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; right: 0; top: 0; height: 100vh; width: 380px; max-width: 100vw; background: var(--white); z-index: 1600; transform: translateX(100%); transition: transform 0.3s ease; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar-header { padding: 20px; border-bottom: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.cart-sidebar-header h3 { font-family: var(--font-heading); font-size: 18px; margin: 0; }
.cart-sidebar-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--gray-200); box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.05); }
.cart-item { display: flex; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); align-items: flex-start; }
.cart-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; border: 1px solid var(--gray-200); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; line-height: 1.3; margin-bottom: 4px; display: block; text-decoration: none; color: var(--dark); }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 15px; }



