/**
 * Icon Features Styling
 * Styles for Product Catalog, Image Upload, Social Share, and Chat features
 */

/* ===================================================================
   ICON ACTION BAR
   =================================================================== */

.icon-action-bar {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.icon-action-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.icon-action-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.icon-action-btn.catalog {
  background: linear-gradient(135deg, #4A90E2, #2E5C8A);
}

.icon-action-btn.camera {
  background: linear-gradient(135deg, #7E7E7E, #4A4A4A);
}

.icon-action-btn.social {
  background: linear-gradient(135deg, #E94B8B, #C13584);
}

.icon-action-btn.chat {
  background: linear-gradient(135deg, #E8E8E8, #FFFFFF);
}

.icon-action-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 70px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.icon-action-btn:hover::after {
  opacity: 1;
}

/* ===================================================================
   MODAL BASE STYLES
   =================================================================== */

.icon-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.icon-modal.active {
  opacity: 1;
}

.icon-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.icon-modal-header {
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #2F4F4F;
}

.icon-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-modal-close:hover {
  color: #000;
}

.icon-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* ===================================================================
   CATALOG MODAL - INNOVATIVE DESIGN WITH MULTIPLE VIEWS
   =================================================================== */

.catalog-content {
  max-width: 1200px;
}

.catalog-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-right: 20px;
}

.catalog-view-switcher {
  display: flex;
  gap: 8px;
}

.view-btn {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.view-btn:hover {
  border-color: #D4AF37;
  background: #fffef8;
}

.view-btn.active {
  background: linear-gradient(135deg, #2F4F4F, #4A7C59);
  border-color: #2F4F4F;
  color: white;
}

.catalog-filters {
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  border-bottom: 2px solid #e0e0e0;
  scrollbar-width: thin;
  align-items: center;
}

.catalog-filters::-webkit-scrollbar {
  height: 6px;
}

.catalog-filters::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 4px;
}

.catalog-filters::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  transition: all 0.3s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  line-height: 1.2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
  border-color: #D4AF37;
  color: #2F4F4F;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, #2F4F4F, #4A7C59);
  color: white;
  border-color: #2F4F4F;
  box-shadow: 0 4px 12px rgba(47, 79, 79, 0.3);
}

.catalog-search {
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.catalog-search input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s;
}

.catalog-search input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.catalog-stats {
  margin-bottom: 16px;
  padding: 12px 0;
  color: #666;
  font-size: 0.95rem;
}

.catalog-stats strong {
  color: #2F4F4F;
  font-weight: 700;
}

/* GRID VIEW (Default) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px;
}

.catalog-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.catalog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #D4AF37;
}

.catalog-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.badge-tag {
  background: linear-gradient(135deg, #D4AF37, #F4D03F);
  color: #2F4F4F;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
}

.badge-emoji {
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.catalog-card-body {
  padding: 70px 20px 16px;
  flex: 1;
  background: linear-gradient(180deg, rgba(47, 79, 79, 0.03) 0%, rgba(255, 255, 255, 1) 40%);
}

.catalog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2F4F4F;
  margin: 0 0 8px 0;
  line-height: 1.3;
  min-height: 2.6em;
}

.catalog-card-category {
  font-size: 0.85rem;
  color: #D4AF37;
  font-weight: 600;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.catalog-card-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 12px 0;
  min-height: 3.6em;
}

.catalog-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  font-size: 0.9rem;
}

.rating-text {
  color: #666;
  font-size: 0.85rem;
}

.catalog-card-price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.price-current {
  font-size: 1.4rem;
  font-weight: 800;
  color: #2F4F4F;
}

.price-mrp {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.price-discount {
  background: #FF6B6B;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.catalog-card-footer {
  padding: 0 20px 20px;
  display: flex;
  gap: 10px;
}

.btn-catalog-view,
.btn-catalog-cart {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-catalog-view {
  background: white;
  color: #2F4F4F;
  border: 2px solid #2F4F4F;
}

.btn-catalog-view:hover {
  background: #2F4F4F;
  color: white;
}

.btn-catalog-cart {
  background: linear-gradient(135deg, #D4AF37, #F4D03F);
  color: #2F4F4F;
  border: 2px solid #D4AF37;
}

.btn-catalog-cart:hover {
  background: linear-gradient(135deg, #F4D03F, #D4AF37);
  transform: scale(1.05);
}

.catalog-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.catalog-empty h3 {
  font-size: 1.5rem;
  color: #666;
  margin: 0 0 10px 0;
}

.catalog-empty p {
  font-size: 1rem;
  color: #999;
  margin: 0;
}

/* ===================================================================
   LIST VIEW STYLES
   =================================================================== */

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px;
}

.catalog-list-item {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.catalog-list-item:hover {
  border-color: #D4AF37;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.list-item-emoji {
  font-size: 3rem;
  min-width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.list-item-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #2F4F4F;
  font-weight: 700;
}

.list-badge {
  background: linear-gradient(135deg, #D4AF37, #F4D03F);
  color: #2F4F4F;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.list-category {
  color: #D4AF37;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.list-desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.list-item-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.list-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #666;
}

.list-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-actions {
  margin-left: auto;
}

.btn-list-cart {
  background: linear-gradient(135deg, #D4AF37, #F4D03F);
  color: #2F4F4F;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-list-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ===================================================================
   MAGAZINE VIEW STYLES
   =================================================================== */

.catalog-magazine {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px;
}

.catalog-magazine-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid #f0f0f0;
}

.catalog-magazine-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  border-color: #D4AF37;
}

.catalog-magazine-item.featured {
  grid-column: span 2;
}

.magazine-content {
  padding: 32px;
  background: linear-gradient(135deg, rgba(47, 79, 79, 0.02) 0%, white 100%);
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.magazine-badge-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.magazine-badge {
  background: linear-gradient(135deg, #D4AF37, #F4D03F);
  color: #2F4F4F;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.magazine-emoji {
  font-size: 3.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.magazine-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.magazine-category {
  color: #D4AF37;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px 0;
}

.magazine-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2F4F4F;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.featured .magazine-title {
  font-size: 2.2rem;
}

.magazine-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.magazine-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.feature-pill {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #495057;
  font-weight: 500;
}

.magazine-bottom {
  margin-top: auto;
  padding-top: 24px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.magazine-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #666;
}

.magazine-price {
  flex: 1;
}

.price-label {
  display: block;
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: #2F4F4F;
}

.save-tag {
  display: inline-block;
  background: #FF6B6B;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 8px;
}

.btn-magazine-shop {
  background: linear-gradient(135deg, #2F4F4F, #4A7C59);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-magazine-shop:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(47, 79, 79, 0.3);
}

/* Legacy styles for compatibility */
.catalog-item {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.catalog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.catalog-item-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: white;
}

.catalog-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-item-details {
  padding: 16px;
}

.catalog-item-details h3 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  color: #2F4F4F;
}

.catalog-category {
  color: #666;
  font-size: 0.85rem;
  margin: 0 0 8px 0;
}

.catalog-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #C8960C;
  margin: 0 0 12px 0;
}

.catalog-btn-quick {
  background: #2F4F4F;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
  width: 100%;
}

.catalog-btn-quick:hover {
  background: #1a3030;
}

/* Detail Modal */
.detail-content {
  max-width: 800px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.detail-image img {
  width: 100%;
  border-radius: 12px;
}

.detail-category {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: #C8960C;
  margin: 0 0 20px 0;
}

.detail-benefits h4 {
  margin-bottom: 12px;
  color: #2F4F4F;
}

.detail-benefits ul {
  list-style: none;
  padding: 0;
}

.detail-benefits li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.detail-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2F4F4F;
  font-weight: bold;
}

.detail-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  flex: 1;
}

.btn-primary {
  background: #2F4F4F;
  color: white;
}

.btn-primary:hover {
  background: #1a3030;
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: #2F4F4F;
  border: 2px solid #2F4F4F;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

/* ===================================================================
   IMAGE UPLOAD MODAL
   =================================================================== */

.upload-area {
  text-align: center;
  padding: 40px 20px;
  border: 3px dashed #ddd;
  border-radius: 12px;
  margin-bottom: 30px;
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.upload-area h3 {
  margin: 0 0 12px 0;
  color: #2F4F4F;
}

.upload-area p {
  color: #666;
  margin-bottom: 24px;
}

.upload-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-upload, .btn-camera {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.btn-upload {
  background: #4A90E2;
  color: white;
}

.btn-upload:hover {
  background: #2E5C8A;
}

.btn-camera {
  background: #7E7E7E;
  color: white;
}

.btn-camera:hover {
  background: #4A4A4A;
}

.upload-preview {
  text-align: center;
  margin-bottom: 30px;
}

.upload-preview img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.preview-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.recent-uploads h4 {
  margin-bottom: 16px;
  color: #2F4F4F;
}

.uploads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.upload-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-uploads {
  text-align: center;
  color: #999;
  padding: 20px;
  font-style: italic;
}

/* ===================================================================
   SOCIAL SHARE MODAL
   =================================================================== */

.share-preview {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.share-preview h3 {
  margin: 0 0 12px 0;
  color: #2F4F4F;
}

.share-preview p {
  margin: 0 0 8px 0;
  color: #666;
}

.share-url {
  font-size: 0.85rem;
  color: #4A90E2;
  word-break: break-all;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 50px;
  border: 2px solid #e0e0e0;
  background: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
  color: #2F4F4F;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: currentColor;
}

.share-icon-svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s;
}

.share-btn.facebook { border-color: #1877F2; }
.share-btn.facebook:hover { background: #1877F2; color: white; }
.share-btn.facebook .share-icon-svg { color: #1877F2; }
.share-btn.facebook:hover .share-icon-svg { color: white; }

.share-btn.twitter { border-color: #1DA1F2; }
.share-btn.twitter:hover { background: #1DA1F2; color: white; }
.share-btn.twitter .share-icon-svg { color: #1DA1F2; }
.share-btn.twitter:hover .share-icon-svg { color: white; }

.share-btn.whatsapp { border-color: #25D366; }
.share-btn.whatsapp:hover { background: #25D366; color: white; }
.share-btn.whatsapp .share-icon-svg { color: #25D366; }
.share-btn.whatsapp:hover .share-icon-svg { color: white; }

.share-btn.instagram { border-color: #E4405F; }
.share-btn.instagram:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); color: white; border-color: #E4405F; }
.share-btn.instagram .share-icon-svg { color: #E4405F; }
.share-btn.instagram:hover .share-icon-svg { color: white; }

.share-btn.copy { border-color: #666; }
.share-btn.copy:hover { background: #666; color: white; }
.share-btn.copy .share-icon-svg { color: #666; }
.share-btn.copy:hover .share-icon-svg { color: white; }

.native-share {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn-native-share {
  background: white;
  color: #2F4F4F;
  border: 2px solid #2F4F4F;
  padding: 12px 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.btn-native-share:hover {
  background: #2F4F4F;
  color: white;
}

/* ===================================================================
   CHAT MODAL
   =================================================================== */

.chat-content {
  max-width: 500px;
  height: 600px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: linear-gradient(135deg, #2F4F4F, #1a3030);
  color: white;
  border-radius: 16px 16px 0 0;
}

.chat-header h2 {
  color: white;
  margin: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-status {
  font-size: 0.85rem;
  color: #4ade80;
}

.chat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f5f5f5;
}

.chat-message {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.chat-bubble {
  max-width: 70%;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-message.user .chat-bubble {
  background: #2F4F4F;
  color: white;
}

.chat-bubble p {
  margin: 0 0 8px 0;
}

.chat-time {
  font-size: 0.75rem;
  color: #999;
}

.chat-message.user .chat-time {
  color: rgba(255, 255, 255, 0.7);
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

.quick-reply {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #2F4F4F;
  background: white;
  color: #2F4F4F;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-reply:hover {
  background: #2F4F4F;
  color: white;
}

.chat-input-container {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 16px 16px;
}

#chatInput {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 0.95rem;
  outline: none;
}

#chatInput:focus {
  border-color: #2F4F4F;
}

.chat-send-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #2F4F4F;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.chat-send-btn:hover {
  background: #1a3030;
  transform: scale(1.1);
}

/* ===================================================================
   TOAST NOTIFICATIONS
   =================================================================== */

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10001;
  max-width: 400px;
}

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

.toast-success {
  background: #4ade80;
  color: #1a3030;
}

.toast-error {
  background: #ef4444;
}

.toast-info {
  background: #3b82f6;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 768px) {
  .icon-action-bar {
    bottom: 70px;
    right: 15px;
  }
  
  .icon-action-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .icon-action-btn::after {
    display: none;
  }
  
  .icon-modal {
    padding: 10px;
  }
  
  .icon-modal-content {
    max-height: 95vh;
  }
  
  .icon-modal-header {
    padding: 16px;
  }
  
  .icon-modal-header h2 {
    font-size: 1.2rem;
  }
  
  .icon-modal-body {
    padding: 16px;
  }
  
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-height: 55vh;
  }
  
  .catalog-list {
    gap: 12px;
  }
  
  .catalog-list-item {
    flex-direction: column;
    text-align: center;
  }
  
  .list-item-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .list-actions {
    margin-left: 0;
  }
  
  .btn-list-cart {
    width: 100%;
  }
  
  .catalog-magazine {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .catalog-magazine-item.featured {
    grid-column: span 1;
  }
  
  .magazine-content {
    padding: 24px;
    min-height: auto;
  }
  
  .magazine-title {
    font-size: 1.4rem;
  }
  
  .featured .magazine-title {
    font-size: 1.6rem;
  }
  
  .magazine-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-magazine-shop {
    width: 100%;
  }
  
  .catalog-filters {
    padding: 16px;
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    min-height: 40px;
  }
  
  .catalog-search {
    padding: 12px 16px;
  }
  
  .catalog-card-body {
    padding: 60px 15px 12px;
  }
  
  .catalog-card-title {
    font-size: 1rem;
  }
  
  .catalog-card-desc {
    font-size: 0.85rem;
    min-height: auto;
  }
  
  .price-current {
    font-size: 1.2rem;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-actions {
    flex-direction: column;
  }
  
  .share-buttons-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .chat-content {
    height: 500px;
  }
  
  .upload-buttons {
    flex-direction: column;
  }
  
  .upload-area {
    padding: 30px 15px;
  }
  
  .uploads-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .catalog-filters {
    gap: 8px;
    padding: 12px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-height: 38px;
  }
  
  .catalog-card-footer {
    flex-direction: column;
  }
  
  .btn-catalog-view,
  .btn-catalog-cart {
    width: 100%;
  }
  
  .share-buttons-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-content {
    height: 450px;
  }
  
  .chat-bubble {
    max-width: 85%;
  }
}
