/* assets/css/style.css - استایل‌های حرفه‌ای کافی‌شاپ */

body {
  background-color: #f8f5f2;
  font-family: "Vazirmatn", sans-serif; /* اگر فونت فارسی داری، иначе حذف کن */
}

.hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url("../images/hero.jpg") center/cover no-repeat;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: white;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  animation: fadeInDown 1s ease-out;
}

.hero-text p {
  font-size: 1.5rem;
  animation: fadeInUp 1s ease-out 0.5s;
  animation-fill-mode: both;
}

.product-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.price {
  font-size: 1.5rem;
  color: #d4a574;
  font-weight: bold;
}

.feature-icon {
  font-size: 3rem;
  color: #c49b63;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-warning {
  background-color: #d4a574;
  border-color: #d4a574;
}

.btn-warning:hover {
  background-color: #c49b63;
  border-color: #c49b63;
}

/* هدر حرفه‌ای شبیه دیجی‌کالا با تم کافی‌شاپ */
.navbar {
  background-color: #3d2a1a !important; /* قهوه‌ای تیره */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: #d4a574 !important; /* طلایی */
}

.navbar-brand img {
  height: 45px;
  margin-left: 10px;
}

.search-form {
  max-width: 500px;
  width: 100%;
}

.search-input {
  border-radius: 8px 0 0 8px;
  border: none;
  padding: 0.8rem 1rem;
}

.search-btn {
  border-radius: 0 8px 8px 0;
  background-color: #d4a574;
  border: none;
  padding: 0 1.5rem;
  color: white;
}

.search-btn:hover {
  background-color: #c49b63;
}

.nav-link {
  color: #f0e6d2 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: #d4a574 !important;
}

.cart-badge {
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
}

@media (max-width: 992px) {
  .search-form {
    max-width: 100%;
    margin: 1rem 0;
  }
  .navbar-nav .nav-item {
    text-align: center;
  }
}

/* هدر لاغر و حرفه‌ای - شبیه دیجی‌کالا ولی ظریف‌تر */
.navbar {
  background-color: #3d2a1a !important;
  padding: 0.6rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-height: 60px;
}

.navbar-brand {
  font-size: 1.6rem !important; /* کوچکتر و ظریف‌تر */
  font-weight: 700;
  color: #d4a574 !important;
  letter-spacing: 0.5px;
}

.navbar-brand:hover {
  color: #e8c89a !important;
}

.search-form {
  max-width: 450px;
  width: 100%;
  height: 42px;
}

.search-input {
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  background-color: #f8f5f2;
  height: 100%;
}

.search-input:focus {
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.3);
  outline: none;
}

.nav-link {
  color: #f0e6d2 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: #d4a574 !important;
}

.cart-badge {
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
}

.hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 90vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
    url("../images/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-text {
  animation: fadeIn 1.5s ease-out;
  max-width: 800px;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-text p {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }
  .hero-text p {
    font-size: 1.4rem;
  }
}

/* دکمه‌های Hero - رنگ متن همیشه سفید و ثابت */
.btn-hero-primary {
  color: white !important; /* متن "مشاهده منو" همیشه سفید */
  background-color: #d4a574;
  border: none;
  transition: all 0.3s ease;
}

.btn-hero-primary:hover {
  background-color: #c49b63;
  color: white !important; /* موقع hover هم سفید بمونه */
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-outline {
  color: white !important; /* متن "سبد خرید" همیشه سفید */
  border: 2px solid white;
  background-color: #c49b63;
  transition: all 0.3s ease;
}

.btn-hero-outline:hover {
  color: white !important; /* موقع hover هم سفید بمونه */
  background-color: #c49b63;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* فوتر حرفه‌ای شبیه دیجی‌کالا با تم کافی‌شاپ */
footer {
  background-color: #2c1e12; /* قهوه‌ای خیلی تیره */
  color: #f0e6d2;
  padding-top: 3rem;
  margin-top: 5rem;
  border-top: 5px solid #d4a574; /* خط طلایی بالا */
}

.footer-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: #d4a574;
  margin-bottom: 1.5rem;
}

.footer-links h5 {
  color: #d4a574;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #f0e6d2;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #d4a574;
}

.social-icons a {
  font-size: 1.5rem;
  color: #f0e6d2;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #d4a574;
}

.footer-bottom {
  background-color: #1e140c;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-links h5 {
    margin-top: 2rem;
  }
}

/* سبد خرید حرفه‌ای شبیه دیجی‌کالا با تم کافی‌شاپ */
.cart-item-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
}

.cart-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cart-item-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-price {
  color: #d4a574;
  font-weight: bold;
  font-size: 1.2rem;
}

.cart-total-card {
  border-radius: 15px;
  background: #f8f5f2;
  border: 2px solid #d4a574;
}

.cart-total-price {
  font-size: 1.8rem;
  color: #d4a574;
  font-weight: 800;
}

.cart-action-btn {
  border-radius: 12px;
  padding: 0.8rem 2rem;
  font-weight: 600;
}

.cart-action-btn.primary {
  background-color: #d4a574;
  border: none;
}

.cart-action-btn.primary:hover {
  background-color: #c49b63;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .cart-item-img {
    width: 100px;
    height: 100px;
  }
  .cart-total-price {
    font-size: 1.5rem;
  }
}

/* ===== Admin Panel – Luxury Coffee Theme ===== */

body {
  font-family: "Vazirmatn", sans-serif;
  background: #f8f5f2;
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 250px;
  background: #3d2a1a;
  color: #fff;
  position: fixed;
  height: 100%;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.admin-sidebar .logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #d4a574;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.5rem;
  color: #f0e6d2;
  text-decoration: none;
  transition: 0.3s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: #d4a574;
  color: #3d2a1a;
}

/* Main */
.admin-main {
  margin-left: 250px;
  padding: 2rem;
  width: 100%;
}

/* Cards */
.admin-card-summary {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.admin-card-summary:hover {
  transform: translateY(-6px);
}

.admin-card-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #d4a574;
}

.admin-card-title {
  color: #6b4f3a;
  margin-top: 0.5rem;
}

/* Orders table */
.admin-orders-table thead {
  background: #3d2a1a;
  color: #fff;
}

.admin-orders-table tbody tr:hover {
  background: #f0e6d2;
  cursor: pointer;
}

/* Status badges */
.status-badge {
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  display: inline-block;
}

.status-new {
  background: #e3f2fd;
  color: #1976d2;
}

.status-preparing {
  background: #fff3e0;
  color: #f57c00;
}

.status-shipped {
  background: #e8f5e9;
  color: #388e3c;
}

.status-delivered {
  background: #e0f2f1;
  color: #00695c;
}

/* Responsive */
@media (max-width: 992px) {
  .admin-sidebar {
    width: 80px;
    text-align: center;
  }

  .admin-sidebar span,
  .admin-sidebar .logo small {
    display: none;
  }

  .admin-main {
    margin-left: 80px;
  }
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  background: #3d2a1a;
  z-index: 1000;
}

.admin-main {
  margin-right: 250px;
  padding: 2rem;
  width: calc(100% - 250px);
}

/* Responsive */
@media (max-width: 992px) {
  .admin-sidebar {
    width: 80px;
  }

  .admin-main {
    margin-right: 80px;
    width: calc(100% - 80px);
  }
}

.admin-sidebar .logo small {
  color: #fff !important;
}
