/* Custom CSS for ShopCidade */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --gray-color: #95a5a6;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #c0392b;
  --info-color: #3498db;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Top Navigation */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-brand span {
  color: var(--secondary-color);
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Hamburger Menu Toggle Button */
#cidaza-menu-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid #20B2AA;
  border-radius: 6px;
  color: #20B2AA;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  margin-right: 12px;
  flex-shrink: 0;
}

#cidaza-menu-toggle:hover,
#cidaza-menu-toggle:focus {
  background: #20B2AA;
  color: #fff;
  outline: none;
}

/* Hamburger Menu Overlay Panel */
#cidaza-menu-overlay {
  position: fixed;
  top: 62px;
  left: 0;
  width: 280px;
  z-index: 2000;
  display: none;
  flex-direction: column;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.25);
  border-radius: 0 0 8px 0;
  overflow: hidden;
  animation: cidaza-slide-in 0.18s ease;
}

#cidaza-menu-overlay.open {
  display: flex;
}

@keyframes cidaza-slide-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cidaza-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: filter 0.15s;
}

.cidaza-menu-item:nth-child(odd) {
  background-color: #20B2AA;
}

.cidaza-menu-item:nth-child(even) {
  background-color: #3498db;
}

.cidaza-menu-item:hover {
  filter: brightness(0.88);
  color: #fff;
  text-decoration: none;
}

.cidaza-menu-item i {
  width: 20px;
  text-align: center;
  font-size: 1.05rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 0;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-form .form-control {
  border-radius: 50px 0 0 50px;
  border: none;
  padding: 12px 20px;
  height: auto;
}

.search-form .btn {
  border-radius: 0 50px 50px 0;
  padding: 12px 25px;
}

/* Category Section */
.category-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Store Cards */
.store-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.store-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.store-card-body {
  padding: 20px;
}

.store-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.store-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

/* Product Cards */
.product-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-img-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 20px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark-color);
}

.product-sale-price {
  color: var(--accent-color);
}

.product-original-price {
  text-decoration: line-through;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.product-card .btn {
  margin-top: 15px;
}

/* Store Detail */
.store-header {
  background-size: cover;
  background-position: center;
  height: 300px;
  position: relative;
  margin-bottom: 80px;
}

.store-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.store-profile {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.store-profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid white;
  background-color: white;
}

.store-profile-title {
  font-size: 2rem;
  color: white;
  margin-top: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Product Detail */
.product-detail-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.product-detail-img img {
  width: 100%;
  height: auto;
}

.product-detail-thumb {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 10px;
  border: 2px solid transparent;
  object-fit: cover;
}

.product-detail-thumb.active {
  border-color: var(--primary-color);
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 15px 0;
}

.product-detail-original-price {
  text-decoration: line-through;
  color: var(--gray-color);
  font-size: 1.2rem;
  margin-left: 10px;
}

.product-detail-description {
  margin: 20px 0;
}

.product-quantity {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.qty-input {
  width: 70px;
  text-align: center;
  margin: 0 10px;
}

/* Cart */
.cart-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  object-fit: cover;
}

.cart-item-price {
  font-weight: 600;
}

.cart-summary {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
}

/* Checkout */
.checkout-address {
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: border-color 0.3s;
}

.checkout-address.selected {
  border-color: var(--primary-color);
}

.payment-method {
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: border-color 0.3s;
}

.payment-method.selected {
  border-color: var(--primary-color);
}

/* Dashboard */
.dashboard-card {
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.dashboard-card-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.dashboard-card-value {
  font-size: 2rem;
  font-weight: 700;
}

.dashboard-card-title {
  font-size: 1rem;
  color: var(--gray-color);
}

/* Orders */
.order-card {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.order-card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.order-card-body {
  padding: 20px;
}

.order-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.order-status-pending {
  background-color: #fef9c3;
  color: #854d0e;
}

.order-status-processing {
  background-color: #dbeafe;
  color: #1e40af;
}

.order-status-shipped {
  background-color: #bbf7d0;
  color: #166534;
}

.order-status-delivered {
  background-color: #dcfce7;
  color: #14532d;
}

.order-status-cancelled {
  background-color: #fee2e2;
  color: #991b1b;
}

/* City Services */
.service-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Legal Documents */
.document-content {
  font-size: 1rem;
  line-height: 1.8;
}

.document-content h1,
.document-content h2,
.document-content h3,
.document-content h4,
.document-content h5,
.document-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
}

.document-content p {
  margin-bottom: 1em;
}

.document-content ul,
.document-content ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.document-content li {
  margin-bottom: 0.5em;
}

.document-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1em;
  margin-left: 0;
  color: #666;
  font-style: italic;
}

.service-img {
  height: 180px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 20px;
}

.service-type-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-type-government {
  background-color: #dbeafe;
  color: #1e40af;
}

.service-type-tourism {
  background-color: #dcfce7;
  color: #14532d;
}

.service-type-health {
  background-color: #fee2e2;
  color: #991b1b;
}

.service-type-education {
  background-color: #fef9c3;
  color: #854d0e;
}

.service-type-leisure {
  background-color: #f3e8ff;
  color: #6b21a8;
}

.service-type-restaurant {
  background-color: #ffedd5;
  color: #9a3412;
}

.service-type-hotel {
  background-color: #e0f2fe;
  color: #0369a1;
}

.service-type-pharmacy {
  background-color: #d1fae5;
  color: #065f46;
}

.service-type-other {
  background-color: #f3f4f6;
  color: #374151;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--secondary-color);
}

.footer-links h5 {
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links ul {
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 767.98px) {
  .hero {
    padding: 50px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .store-header {
    height: 200px;
    margin-bottom: 60px;
  }
  
  .store-profile-img {
    width: 80px;
    height: 80px;
  }
  
  .store-profile-title {
    font-size: 1.5rem;
  }
  
  .dashboard-card {
    margin-bottom: 15px;
  }
}

/* Legal Documents */
.document-content {
  font-size: 1rem;
  line-height: 1.8;
}

.document-content h1,
.document-content h2,
.document-content h3,
.document-content h4,
.document-content h5,
.document-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
}

.document-content p {
  margin-bottom: 1em;
}

.document-content ul,
.document-content ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.document-content li {
  margin-bottom: 0.5em;
}

.document-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1em;
  margin-left: 0;
  color: #666;
  font-style: italic;
}
