/* ================================================================
   RENTO - Rental Marketplace MVP
   Modern RTL layout with green accent theme
   ================================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --yellow-400: #facc15;
  --yellow-500: #eab308;

  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition: all 0.2s ease;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

input,
select {
  font-family: inherit;
}

/* ==================== HEADER ==================== */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  font-size: 34px;
  font-weight: 800;
  color: var(--green-600);
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: auto;
}

.search-bar {
  flex: 1;
  max-width: 560px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 14px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  color: var(--gray-700);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--green-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.search-input::placeholder {
  color: var(--gray-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.location-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  justify-content: center;
  width: 100px;
}

.location-selector:hover {
  border-color: var(--green-400);
}

.location-selector i:first-child {
  color: var(--green-500);
  font-size: 13px;
}

.location-selector .chevron {
  font-size: 10px;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.location-selector.open .chevron {
  transform: rotate(180deg);
}

.location-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 50;
}

.location-selector.open .location-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.location-option {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

.location-option:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.location-option.selected {
  color: var(--green-600);
  font-weight: 600;
  background: var(--green-50);
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--green-500);
  color: var(--white);
  border-radius: 10px;
  border: 2px solid var(--gray-200);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  width: 100px;
}

.btn-login:hover {
  background: var(--green-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* ==================== HAMBURGER MENU BUTTON ==================== */
.btn-menu {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-menu:hover {
  border-color: var(--green-400);
  color: var(--green-600);
  background: var(--green-50);
}

/* ==================== DRAWER (Side Menu) ==================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  z-index: 260;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-50);
  border: none;
  color: var(--gray-500);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.drawer-list {
  list-style: none;
  padding: 12px 0;
  flex: 1;
}

.drawer-list li {
  margin: 0;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.drawer-item:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.drawer-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: var(--gray-400);
  transition: var(--transition);
}

.drawer-item:hover i {
  color: var(--green-500);
}

/* ==================== MAIN LAYOUT ==================== */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 24px;
  min-height: calc(100vh - 200px);
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.filter-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-title i {
  color: var(--green-500);
  font-size: 14px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  padding: 4px 0;
  transition: var(--transition);
}

.radio-item:hover {
  color: var(--green-700);
}

.radio-item input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.radio-item input[type="radio"]:checked + .radio-custom {
  border-color: var(--green-500);
}

.radio-item input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  background: var(--green-500);
  border-radius: 50%;
}

.radio-item input[type="radio"]:checked ~ .radio-custom + span,
.radio-item:has(input:checked) {
  color: var(--green-700);
  font-weight: 500;
}

.price-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.price-field {
  flex: 1;
}

.price-input {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--gray-700);
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.price-input:focus {
  border-color: var(--green-400);
}

.price-slider {
  position: relative;
  height: 6px;
  margin: 20px 0 12px;
}

.slider-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
}

.slider-range {
  position: absolute;
  height: 100%;
  background: var(--green-500);
  border-radius: 3px;
  left: 0%;
  right: 0%;
}

.range-input {
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  top: 0;
  z-index: 1;
}

.range-input:last-of-type {
  z-index: 2;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--green-500);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--green-500);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}

.range-input::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.range-input::-moz-range-track {
  background: transparent;
  border: none;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}

.city-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Vazirmatn', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: right;
}

.city-select option {
  font-family: 'Vazirmatn', sans-serif;
  text-align: right;
}

.city-select:focus {
  border-color: var(--green-400);
}

.btn-clear-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--green-200);
}

.btn-clear-filters:hover {
  background: var(--green-100);
}

.btn-clear-filters i {
  font-size: 13px;
}

/* ==================== CONTENT AREA ==================== */
.content {
  flex: 1;
  min-width: 0;
}

.category-tabs {
  display: flex;
  gap: 100px;
  margin-top: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
  min-width: 90px;
}

.tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 50%;
  transition: var(--transition);
}

.tab-icon i {
  font-size: 22px;
  color: var(--green-500);
  transition: var(--transition);
}

.tab-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  transition: var(--transition);
}

.tab:hover .tab-icon {
  border-color: var(--green-300);
  background: var(--green-50);
}

.tab:hover .tab-label {
  color: var(--green-700);
}

.tab.active .tab-icon {
  border-color: var(--green-500);
  background: var(--green-50);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.tab.active .tab-icon i {
  color: var(--green-600);
}

.tab.active .tab-label {
  color: var(--green-700);
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: flex-start;
}

.sort-label {
  font-size: 14px;
  color: var(--gray-500);
}

.sort-select {
  padding: 8px 14px 8px 32px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Vazirmatn', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  text-align: right;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}

.sort-select option {
  font-family: 'Vazirmatn', sans-serif;
  text-align: right;
}

.sort-select:focus {
  border-color: var(--green-400);
}

/* ==================== PRODUCT GRID ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

.product-image {
  width: 100%;
  height: 200px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.product-image .placeholder-icon {
  font-size: 48px;
  color: var(--gray-300);
}

.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
  line-height: 1.5;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 8px;
}

.product-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
}

.product-rating .star {
  color: var(--yellow-500);
  font-size: 12px;
}

.product-rating .score {
  font-weight: 600;
  color: var(--gray-700);
}

.product-rating .count {
  color: var(--gray-400);
  font-size: 12px;
}

.btn-rent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: var(--green-500);
  color: var(--white);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  margin-top: auto;
}

.btn-rent:hover {
  background: var(--green-600);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--white);
  border-top: 1.5px solid rgba(0, 0, 0, 0.178);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px 40px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand {
  max-width: 300px;
  margin-left: 40px;
  text-align: center;
}

.footer-logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--green-600);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 85px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.footer-col .social-icons{
  display: flex;
  gap: 10px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--gray-500);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--green-600);
}

.footer-bottom {
  text-align: center;
  padding: 16px 24px;
  border-top: 1.5px solid rgba(0, 0, 0, 0.178);
  font-size: 13px;
  color: var(--gray-400);
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 90%;
  max-width: 400px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 24px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--gray-700);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.btn-submit {
  padding: 12px;
  background: var(--green-500);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--green-600);
}

/* ==================== RENT MODAL ==================== */
.rent-modal {
  max-width: 440px;
  max-height: 90vh;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.rent-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px 0;
}

.rent-product-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rent-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rent-product-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.rent-product-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-600);
}

.rent-section {
  padding: 16px 28px 0;
}

.rent-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.duration-options {
  display: flex;
  gap: 8px;
}

.duration-btn {
  flex: 1;
  padding: 10px 8px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}

.duration-btn:hover {
  border-color: var(--green-300);
  color: var(--green-700);
}

.duration-btn.active {
  background: var(--green-50);
  border-color: var(--green-500);
  color: var(--green-700);
  font-weight: 600;
}

.custom-days {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.days-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.days-btn:hover {
  border-color: var(--green-400);
  background: var(--green-50);
  color: var(--green-600);
}

.days-count {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-800);
  min-width: 40px;
  text-align: center;
}

.days-unit {
  font-size: 14px;
  color: var(--gray-500);
}

.rent-summary {
  margin: 20px 28px 0;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-600);
}

.summary-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 10px 0;
}

.summary-total {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 15px;
}

.btn-confirm-rent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 56px);
  margin: 20px 28px 24px;
  padding: 14px;
  background: var(--green-500);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.btn-confirm-rent:hover {
  background: var(--green-600);
}

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-800);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 300;
  transition: transform 0.4s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast i {
  color: var(--green-400);
  font-size: 18px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .main-layout {
    flex-direction: row;
  }

  .sidebar {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: column-reverse;
    padding: 16px;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .filter-section {
    flex: 1;
    min-width: 200px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-tabs {
    gap: 20px;
  }

  .tab-icon {
    width: 60px;
    height: 60px;
  }

  .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }

  .brand {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-image {
    height: 140px;
  }

  .product-info {
    padding: 12px;
  }

  .product-title {
    font-size: 13px;
  }

  .product-price {
    font-size: 14px;
  }

  .btn-rent {
    padding: 8px;
    font-size: 13px;
  }

  .footer-inner {
    flex-direction: column;
    padding: 24px 16px;
  }

  .footer-brand {
    margin-left: 0;
  }

  .footer-links {
    gap: 24px;
    flex-wrap: wrap;
  }
}
