@charset "UTF-8";
/* Seller Shop Customizations Styles - Shopee Style */
:root {
  /* Shopee Color Variables */
  --shopee-primary: #ee4d2d;
  --shopee-primary-hover: #d73211;
  --shopee-secondary: #ff6533;
  --shopee-gradient: linear-gradient(135deg, #ee4d2d 0%, #ff6533 100%);
  --shopee-text-primary: #222;
  --shopee-text-secondary: #666;
  --shopee-text-muted: #999;
  --shopee-border: #e5e5e5;
  --shopee-background: #f5f5f5;
  --shopee-white: #ffffff;
  --shopee-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shopee-shadow-hover: 0 4px 16px rgba(238, 77, 45, 0.2);
  --shopee-border-radius: 8px;
  --shopee-border-radius-small: 4px;
  /* Seller Color Variables */
  --seller-primary: #4ea674;
  --seller-primary-hover: #3f8a60;
  --seller-primary-light: #d6f1e2;
  --seller-secondary: #6bc98b;
  --seller-gradient: linear-gradient(135deg, #4ea674 0%, #6bc98b 100%);
  --seller-text-primary: #1f3d2e;
  --seller-text-secondary: #476b57;
  --seller-text-muted: #8ba394;
  --seller-background: #f8fbf9;
  --seller-background-light: #eef7f2;
  --seller-background-dark: #e3f2ea;
  --seller-border: #d7e7de;
  --seller-border-light: #eaf3ee;
  --seller-white: #ffffff;
  --seller-shadow: 0 2px 8px rgba(78, 166, 116, 0.15);
  --seller-shadow-hover: 0 4px 12px rgba(78, 166, 116, 0.25);
  --seller-border-radius: 8px;
  --seller-border-radius-small: 4px;
  --seller-success: #4ea674;
  --seller-warning: #f5a623;
  --seller-danger: #e04e2f;
  --seller-info: #3b82f6;
  --seller-btn-bg: var(--seller-primary);
  --seller-btn-bg-hover: var(--seller-primary-hover);
  --seller-btn-text: #ffffff;
  --seller-btn-border: var(--seller-primary);
  --seller-link: var(--seller-primary);
  --seller-link-hover: var(--seller-primary-hover);
}

/* Shopee-style Template Selection */
.template-selection {
  margin-top: 20px;
}

.template-card {
  background: var(--shopee-white);
  border: 2px solid var(--shopee-border);
  border-radius: var(--shopee-border-radius);
  margin-bottom: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: var(--shopee-shadow);
}

.template-card:hover {
  border-color: var(--seller-primary);
  box-shadow: var(--seller-shadow-hover);
  transform: translateY(-2px);
}

.template-card.active {
  border-color: var(--seller-primary);
  box-shadow: var(--seller-shadow-hover);
}

.template-card.active::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--seller-primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
}

.template-preview {
  position: relative;
  overflow: hidden;
}

.template-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.template-actions {
  text-align: center;
  padding: 20px;
}

.template-actions .btn {
  margin: 5px 0;
  border-radius: var(--shopee-border-radius-small);
  font-weight: 500;
  text-transform: none;
}

.template-actions .btn-primary {
  background: var(--seller-gradient);
  border: none;
  color: white;
}

.template-actions .btn-primary:hover {
  background: var(--seller-primary-hover);
  transform: translateY(-1px);
}

.template-actions .btn-info {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.template-actions .btn-info:hover {
  background: white;
  color: var(--seller-primary);
}

.template-info {
  padding: 15px;
}

.template-info h4 {
  color: var(--shopee-text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.template-description {
  color: var(--shopee-text-secondary);
  font-size: 14px;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.template-type .label {
  background: var(--seller-gradient);
  color: white;
  padding: 4px 8px;
  border-radius: var(--shopee-border-radius-small);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Base Form Styles - Shopee Style */
.customization-form .box {
  margin-bottom: 20px;
  border: 1px solid var(--shopee-border);
  border-radius: var(--shopee-border-radius);
  box-shadow: var(--shopee-shadow);
  background: var(--shopee-white);
}

.customization-form .box-header {
  background: var(--seller-gradient);
  color: white;
  border-radius: var(--shopee-border-radius) var(--shopee-border-radius) 0 0;
  padding: 15px 20px;
  border-bottom: none;
}

.customization-form .box-header .box-title {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.customization-form .box-header .box-title i {
  margin-right: 8px;
}

.customization-form .box-body {
  padding: 20px;
}

.seller-customization-template-info-display {
  background: var(--shopee-background);
  padding: 15px;
  border-radius: var(--shopee-border-radius);
  border: 1px solid var(--shopee-border);
}

.seller-customization-template-thumb {
  border-radius: var(--shopee-border-radius);
  border: 1px solid var(--shopee-border);
  box-shadow: var(--shopee-shadow);
}

/* Shopee-style Buttons */
.btn-info {
  background: #1890ff !important;
  color: white !important;
  border-radius: var(--shopee-border-radius-small) !important;
  font-weight: 500 !important;
}

.btn-warning {
  background: #faad14 !important;
  border: none !important;
  color: white !important;
  border-radius: var(--shopee-border-radius-small) !important;
  font-weight: 500 !important;
}

/* File Input Styles - Shopee Style */
.seller-customization-file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.seller-customization-file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.seller-customization-file-input-label {
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--shopee-background);
  border: 2px dashed var(--shopee-border);
  border-radius: var(--shopee-border-radius);
  padding: 20px;
  color: var(--shopee-text-secondary);
}

.seller-customization-file-input-label:hover {
  background-color: var(--shopee-white);
  border-color: var(--seller-primary);
  color: var(--seller-primary);
}

/* Legacy Cover Image Styles */
.seller-customization-cover-image-container {
  position: relative;
  max-width: 100%;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.seller-customization-cover-image-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.seller-customization-remove-new-cover {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

/* Form Controls - Shopee Style */
.form-control {
  border: 1px solid var(--shopee-border) !important;
  border-radius: var(--shopee-border-radius-small) !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  background: var(--shopee-white) !important;
}

.form-control:focus {
  border-color: var(--seller-primary) !important;
  box-shadow: 0 0 0 2px rgba(78, 166, 116, 0.1) !important;
  outline: none !important;
}

.seller-customization-auto-resize {
  resize: vertical;
  min-height: 100px;
  border: 1px solid var(--shopee-border);
  border-radius: var(--shopee-border-radius-small);
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.seller-customization-auto-resize:focus {
  border-color: var(--seller-primary);
  box-shadow: 0 0 0 2px rgba(78, 166, 116, 0.1);
  outline: none;
}

/* Featured Product Checkbox Container */
.form-group {
  overflow: hidden;
  /* Ensure form group contains all elements */
}

.checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  overflow: hidden;
  /* Prevent content from overflowing */
  width: 100%;
  /* Ensure full width */
}

.seller-customization-featured-product-checkbox {
  margin-right: 10px;
  margin-top: 12px;
  /* Align with label text */
  transform: scale(1.2);
  accent-color: var(--seller-primary);
  flex-shrink: 0;
  /* Prevent checkbox from shrinking */
}

.seller-customization-featured-product-label {
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  display: block;
  border: 1px solid var(--shopee-border);
  border-radius: var(--shopee-border-radius-small);
  transition: all 0.3s ease;
  background: var(--shopee-white);
  flex: 1;
  /* Take remaining space */
  margin: 0;
  /* Remove default margin */
}

.seller-customization-featured-product-label:hover {
  border-color: var(--seller-primary);
  background: rgba(78, 166, 116, 0.05);
}

.seller-customization-featured-product-checkbox:checked + .seller-customization-featured-product-label {
  border-color: var(--seller-primary);
  background: rgba(78, 166, 116, 0.1);
  color: var(--seller-primary);
}

/* Shopee-style Alerts and Notifications */
.alert {
  border: none !important;
  border-radius: var(--shopee-border-radius) !important;
  padding: 15px 20px !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.alert-info {
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%) !important;
  color: #0050b3 !important;
  border-left: 4px solid #1890ff !important;
}

.alert-warning {
  background: linear-gradient(135deg, #fff7e6 0%, #ffd591 100%) !important;
  color: #ad6800 !important;
  border-left: 4px solid #faad14 !important;
}

.alert-success {
  background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%) !important;
  color: #389e0d !important;
  border-left: 4px solid #52c41a !important;
}

.alert-danger {
  background: linear-gradient(135deg, #fff2f0 0%, #ffccc7 100%) !important;
  color: #cf1322 !important;
  border-left: 4px solid #ff4d4f !important;
}

.alert i {
  margin-right: 8px !important;
  font-size: 16px !important;
}

/* Shopee-style Progress Indicators */
.progress {
  background: var(--shopee-background) !important;
  border-radius: var(--shopee-border-radius) !important;
  overflow: hidden !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.progress-bar {
  background: var(--seller-gradient) !important;
  transition: width 0.6s ease !important;
}

/* Shopee-style Avatar Section */
.seller-customization-shop-avatar-section, .seller-customization-shop-cover-section {
  margin-bottom: 25px;
  padding: 20px;
  background: var(--shopee-white);
  border: 1px solid var(--shopee-border);
  border-radius: var(--shopee-border-radius);
  box-shadow: var(--shopee-shadow);
}

/* Fix for AdminLTE box conflicts - Comprehensive Override */
.customization-form .box,
.customization-form .box.box-info,
.customization-form .box.box-primary,
.customization-form .box.box-success,
.customization-form .box.box-warning,
.customization-form .box.box-danger,
.customization-form .box.box-default {
  border-top: none !important;
  border-color: var(--shopee-border) !important;
  box-shadow: var(--shopee-shadow) !important;
  background: var(--shopee-white) !important;
}

.customization-form .box .box-header,
.customization-form .box.box-info .box-header,
.customization-form .box.box-primary .box-header,
.customization-form .box.box-success .box-header,
.customization-form .box.box-warning .box-header,
.customization-form .box.box-danger .box-header,
.customization-form .box.box-default .box-header {
  background: var(--seller-gradient) !important;
  border-bottom: none !important;
  color: white !important;
  border-radius: var(--shopee-border-radius) var(--shopee-border-radius) 0 0 !important;
}

.customization-form .box .box-header .box-title,
.customization-form .box .box-header h3 {
  color: white !important;
  font-weight: 600 !important;
  font-size: 16px !important;
}

.customization-form .box .box-header .box-tools {
  color: white !important;
}

.customization-form .box .box-header .box-tools .btn {
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.customization-form .box .box-header .box-tools .btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.customization-form .box .box-body {
  background: var(--shopee-white) !important;
  padding: 20px !important;
}

.customization-form .box .box-footer {
  background: #f9f9f9 !important;
  border-top: 1px solid var(--shopee-border) !important;
}

/* Ensure proper spacing and layout */
.customization-form .row {
  margin-left: -15px;
  margin-right: -15px;
}

.customization-form .col-md-6,
.customization-form .col-md-12 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Fix file input styling */
.customization-form .file-input {
  display: none !important;
}

.customization-form .form-group {
  margin-bottom: 20px;
}

.customization-form .help-block {
  color: #666;
  font-size: 12px;
  margin-top: 8px;
}

.customization-form .help-block i {
  margin-right: 5px;
  color: var(--seller-primary);
}

/* Fix image display */
.seller-customization-current-avatar-image,
.seller-customization-current-cover-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.seller-customization-avatar-preview-container {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

.seller-customization-avatar-preview {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--shopee-white);
  box-shadow: var(--seller-shadow-hover);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--seller-gradient);
}

.seller-customization-avatar-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.seller-customization-current-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-customization-avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.seller-customization-avatar-preview:hover .seller-customization-avatar-overlay {
  opacity: 1;
}

.seller-customization-avatar-upload-btn {
  color: white;
  text-align: center;
  cursor: pointer;
  margin: 0;
  font-size: 12px;
}

.seller-customization-avatar-upload-btn i {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

/* Shopee-style Cover Section */
.seller-customization-cover-preview-container {
  margin: 15px 0;
}

.seller-customization-cover-preview {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: var(--shopee-border-radius);
  overflow: hidden;
  border: 2px solid var(--shopee-border);
  box-shadow: var(--shopee-shadow);
  transition: all 0.3s ease;
  background: var(--seller-gradient);
}

.seller-customization-cover-preview:hover {
  border-color: var(--seller-primary);
  box-shadow: var(--seller-shadow-hover);
  transform: translateY(-2px);
}

.seller-customization-current-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-customization-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.seller-customization-cover-preview:hover .seller-customization-cover-overlay {
  opacity: 1;
}

.seller-customization-cover-upload-btn {
  color: white;
  text-align: center;
  cursor: pointer;
  margin: 0;
  padding: 10px 20px;
  background: var(--seller-secondary);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.seller-customization-cover-upload-btn:hover {
  background: var(--seller-primary);
  color: white;
  text-decoration: none;
}

.seller-customization-cover-upload-btn i {
  margin-right: 8px;
}

/* Shop Name Section */
.seller-customization-shop-name-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--seller-primary);
}

.seller-customization-shop-name-section h4 {
  color: var(--seller-primary);
  margin-bottom: 15px;
}

.seller-customization-shop-name-section .form-control {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.seller-customization-shop-name-section .form-control:focus {
  border-color: var(--seller-primary);
  box-shadow: 0 0 0 0.2rem var(--seller-shadow-hover);
}

/* Animation for updated images */
.seller-customization-avatar-preview.updated {
  animation: seller-customization-pulse 1s ease-in-out;
  border-color: #28a745;
}

.seller-customization-cover-preview.updated {
  animation: seller-customization-pulse 1s ease-in-out;
  border-color: #28a745;
}

@keyframes seller-customization-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .seller-customization-avatar-preview {
    width: 100px;
    height: 100px;
  }

  .seller-customization-cover-preview {
    height: 150px;
  }

  .customization-form .col-md-8,
  .customization-form .col-md-4 {
    width: 100%;
    float: none;
    margin-bottom: 20px;
  }

  .seller-customization-live-preview-container {
    min-height: 300px;
  }

  .customization-form .row {
    margin-left: 0;
    margin-right: 0;
  }

  .customization-form .col-md-6,
  .customization-form .col-md-12 {
    padding-left: 0;
    padding-right: 0;
  }
}
.seller-customization-featured-product-label:hover {
  background-color: #f5f5f5;
  padding-left: 5px;
  border-radius: 3px;
}

/* Featured Products Section - Shopee Style */
.seller-customization-featured-products-preview-container {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-radius: 12px;
  border: 2px solid #f0f0f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.seller-customization-featured-products-preview-container:hover {
  border-color: var(--seller-primary);
  box-shadow: 0 4px 20px rgba(78, 166, 116, 0.15);
}

.seller-customization-featured-products-preview-container label {
  color: var(--seller-primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.seller-customization-featured-products-preview-container label:before {
  content: "⭐";
  margin-right: 8px;
  font-size: 18px;
}

.seller-customization-featured-products-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.seller-customization-featured-product-item {
  background: #fff;
  border: 2px solid #f5f5f5;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.seller-customization-featured-product-item:hover {
  border-color: var(--seller-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(78, 166, 116, 0.2);
}

.seller-customization-featured-product-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--seller-primary), var(--seller-secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.seller-customization-featured-product-item:hover:before {
  transform: scaleX(1);
}

.seller-customization-featured-product-item .product-image-container {
  position: relative;
  margin-bottom: 12px;
}

.seller-customization-featured-product-item .product-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  background: #f8f9fa;
}

.seller-customization-featured-product-item:hover .product-image {
  transform: scale(1.05);
}

/* Video overlay styles */
.seller-customization-video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: none;
}

.seller-customization-video-play-overlay i {
  color: #fff;
  font-size: 24px;
  margin-left: 2px;
  /* Slight offset for visual balance */
}

.seller-customization-featured-product-item:hover .seller-customization-video-play-overlay {
  background: rgba(78, 166, 116, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.seller-customization-featured-product-item .product-title {
  font-size: 14px;
  margin: 8px 0;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.seller-customization-featured-product-item .product-price {
  font-size: 16px;
  color: var(--seller-primary);
  font-weight: 700;
  margin: 8px 0 0 0;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--seller-background-light), var(----seller-background-dark));
  border-radius: 20px;
  display: inline-block;
  border: 1px solid #fee;
}

/* Empty state styling */
.seller-customization-featured-products-preview:empty:after {
  content: "Chọn sản phẩm ở trên để xem preview";
  display: block;
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #ddd;
}

/* Badge for featured products */
.seller-customization-featured-product-item .featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--seller-primary), var(--seller-secondary));
  color: white;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seller-customization-live-preview-container {
  background: var(--shopee-white);
  border: 2px solid var(--shopee-border);
  border-radius: var(--shopee-border-radius);
  padding: 20px;
  min-height: 450px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shopee-shadow);
  transition: all 0.3s ease;
}

.seller-customization-live-preview-container:hover {
  border-color: var(--seller-primary);
  box-shadow: var(--seller-shadow-hover);
}

/* Fix for sidebar boxes - Comprehensive Override */
.col-md-4 .box,
.col-md-4 .box.box-info,
.col-md-4 .box.box-primary,
.col-md-4 .box.box-success,
.col-md-4 .box.box-warning,
.col-md-4 .box.box-danger,
.col-md-4 .box.box-default {
  margin-bottom: 20px !important;
  border: 1px solid var(--shopee-border) !important;
  border-radius: var(--shopee-border-radius) !important;
  box-shadow: var(--shopee-shadow) !important;
  background: var(--shopee-white) !important;
  border-top: none !important;
}

.col-md-4 .box .box-header,
.col-md-4 .box.box-info .box-header,
.col-md-4 .box.box-primary .box-header,
.col-md-4 .box.box-success .box-header,
.col-md-4 .box.box-warning .box-header,
.col-md-4 .box.box-danger .box-header,
.col-md-4 .box.box-default .box-header {
  background: var(--seller-gradient) !important;
  color: white !important;
  border-radius: var(--shopee-border-radius) var(--shopee-border-radius) 0 0 !important;
  border-bottom: none !important;
  padding: 15px 20px !important;
}

.col-md-4 .box .box-header .box-title,
.col-md-4 .box .box-header h3 {
  color: white !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  margin: 0 !important;
}

.col-md-4 .box .box-header .box-tools {
  color: white !important;
}

.col-md-4 .box .box-header .box-tools .btn {
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.col-md-4 .box .box-header .box-tools .btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.col-md-4 .box .box-body {
  padding: 15px !important;
  background: var(--shopee-white) !important;
}

.col-md-4 .box .box-footer {
  background: #f9f9f9 !important;
  border-top: 1px solid var(--shopee-border) !important;
  padding: 10px 15px !important;
  border-radius: 0 0 var(--shopee-border-radius) var(--shopee-border-radius) !important;
}

/* Additional AdminLTE overrides for edge cases */
.customization-form .box.collapsed-box,
.col-md-4 .box.collapsed-box {
  border-color: var(--shopee-border) !important;
}

.customization-form .box.box-solid,
.col-md-4 .box.box-solid {
  border: 1px solid var(--shopee-border) !important;
}

.customization-form .box.box-solid > .box-header,
.col-md-4 .box.box-solid > .box-header {
  background: var(--seller-gradient) !important;
  color: white !important;
}

/* Override AdminLTE direct-chat and other special boxes */
.customization-form .direct-chat .box-header,
.customization-form .nav-tabs-custom .box-header,
.col-md-4 .direct-chat .box-header,
.col-md-4 .nav-tabs-custom .box-header {
  background: var(--seller-gradient) !important;
  color: white !important;
}

/* Ensure buttons in box headers maintain Shopee styling */
.customization-form .box-header .btn,
.col-md-4 .box-header .btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

.customization-form .box-header .btn:hover,
.col-md-4 .box-header .btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Override any AdminLTE color-specific styling */
.customization-form .box-header.with-border,
.col-md-4 .box-header.with-border {
  border-bottom: none !important;
}

.customization-form .box > .overlay,
.col-md-4 .box > .overlay {
  background: rgba(255, 255, 255, 0.7) !important;
}

.seller-customization-live-preview-content {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 500px;
}

.seller-customization-live-preview-content * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.seller-customization-live-preview-content {
  text-align: center;
  padding: 10px;
}

.seller-customization-live-preview-content > div {
  margin: 0 auto;
  display: block;
}

/* Scope template styles within live preview */
.seller-customization-live-preview-content .modern-shop-layout,
.seller-customization-live-preview-content .creative-shop-layout,
.seller-customization-live-preview-content .business-shop-layout,
.seller-customization-live-preview-content .showcase-shop-layout {
  font-size: 14px;
  transform: scale(0.9);
  transform-origin: top center;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.seller-customization-live-preview-content .featured-product {
  margin-bottom: 8px !important;
  padding: 8px !important;
}

.seller-customization-live-preview-content .contact-grid {
  gap: 8px !important;
  justify-content: center !important;
}

.seller-customization-live-preview-content .showcase-products-grid {
  gap: 12px !important;
  justify-content: center !important;
}

.seller-customization-live-preview-content .products-grid {
  gap: 10px !important;
  justify-content: center !important;
}

.seller-customization-progress-checklist li {
  padding: 5px 0;
  transition: all 0.3s ease;
}

.seller-customization-progress-checklist li.completed {
  color: #00a65a;
  font-weight: 600;
}

.seller-customization-progress-checklist li.completed i {
  color: #00a65a;
}

.seller-customization-save-customization-btn {
  min-width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .seller-customization-col-md-8, .seller-customization-col-md-4 {
    margin-bottom: 20px;
  }

  /* Main layout responsive */
  .seller-customization-row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .seller-customization-col-md-8, .seller-customization-col-md-4 {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Box responsive */
  .seller-customization-box {
    margin-bottom: 15px;
  }

  .seller-customization-box-header {
    padding: 10px 15px;
  }

  .seller-customization-box-body {
    padding: 15px;
  }

  .seller-customization-box-footer {
    padding: 10px 15px;
  }

  /* Form responsive */
  .seller-customization-form-group {
    margin-bottom: 15px;
  }

  .seller-customization-help-block {
    font-size: 12px;
    margin-top: 5px;
  }

  /* Button responsive */
  .seller-customization-btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  .seller-customization-btn-group .seller-customization-btn {
    margin-bottom: 5px;
  }

  /* Live preview responsive */
  .seller-customization-live-preview-container {
    padding: 8px;
    min-height: 250px;
    margin-top: 15px;
    overflow: hidden;
  }

  .seller-customization-live-preview-content {
    max-height: 400px;
    overflow-x: auto;
    overflow-y: auto;
  }

  /* Template scaling for tablet */
  .seller-customization-live-preview-content .modern-shop-layout,
  .seller-customization-live-preview-content .creative-shop-layout,
  .seller-customization-live-preview-content .business-shop-layout,
  .seller-customization-live-preview-content .showcase-shop-layout {
    font-size: 13px;
    transform: scale(0.85);
  }

  .seller-customization-live-preview-content .featured-product {
    margin-bottom: 6px !important;
    padding: 6px !important;
  }

  .seller-customization-progress-checklist {
    font-size: 14px;
  }

  .seller-customization-progress-checklist li {
    padding: 4px 0;
  }

  .seller-customization-save-customization-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    font-size: 16px;
  }

  .seller-customization-featured-products-preview {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .seller-customization-featured-product-item {
    padding: 12px;
  }

  .seller-customization-featured-product-item .product-image {
    height: 100px;
  }

  .seller-customization-video-play-overlay {
    width: 40px;
    height: 40px;
  }

  .seller-customization-video-play-overlay i {
    font-size: 20px;
  }

  .seller-customization-featured-product-item .product-title {
    font-size: 13px;
    height: 36px;
  }

  /* Shop preview content responsive for tablet */
  .seller-customization-shop-preview-content {
    padding: 12px !important;
    min-height: 400px !important;
  }

  .seller-customization-shop-profile-section {
    padding: 15px !important;
  }

  .seller-customization-shop-logo {
    width: 60px !important;
    height: 60px !important;
  }

  .seller-customization-shop-name {
    font-size: 18px !important;
  }

  .seller-customization-shop-description {
    font-size: 13px !important;
  }

  .seller-customization-shop-stats {
    font-size: 12px !important;
  }

  .seller-customization-featured-product-item .product-price {
    font-size: 14px;
    padding: 4px 8px;
  }

  .seller-customization-featured-products-preview-container {
    padding: 15px;
    margin-top: 20px;
  }

  .seller-customization-featured-products-preview-container label {
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  /* Layout for very small screens */
  .seller-customization-row {
    margin-left: -5px;
    margin-right: -5px;
  }

  .seller-customization-col-md-8, .seller-customization-col-md-4 {
    padding-left: 5px;
    padding-right: 5px;
  }

  .seller-customization-box {
    margin-bottom: 10px;
  }

  .seller-customization-box-header {
    padding: 8px 10px;
  }

  .seller-customization-box-body {
    padding: 10px;
  }

  .seller-customization-box-footer {
    padding: 8px 10px;
  }

  .seller-customization-box-title {
    font-size: 16px;
  }

  .seller-customization-help-block {
    font-size: 11px;
  }

  .seller-customization-btn {
    padding: 6px 10px;
    font-size: 13px;
  }

  /* Live preview for small screens - FIXED UI ISSUES */
  .seller-customization-live-preview-container {
    padding: 10px;
    min-height: 400px;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    position: relative;
  }

  .seller-customization-live-preview-content {
    max-height: 380px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border-radius: 6px;
    padding: 8px;
    position: relative;
  }

  /* Template scaling for mobile - FIXED SCALING ISSUES */
  .seller-customization-live-preview-content .modern-shop-layout,
  .seller-customization-live-preview-content .creative-shop-layout,
  .seller-customization-live-preview-content .business-shop-layout,
  .seller-customization-live-preview-content .showcase-shop-layout {
    font-size: 9px;
    transform: scale(0.65);
    transform-origin: top left;
    width: 153.85%;
    /* 100% / 0.65 to compensate for scale */
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  /* Better spacing for mobile templates */
  .seller-customization-live-preview-content .featured-product {
    margin-bottom: 3px !important;
    padding: 3px !important;
    border-radius: 3px !important;
  }

  .seller-customization-live-preview-content .contact-grid,
  .seller-customization-live-preview-content .showcase-products-grid,
  .seller-customization-live-preview-content .products-grid {
    gap: 4px !important;
  }

  /* Fix image scaling on mobile */
  .seller-customization-live-preview-content img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Fix text overflow on mobile */
  .seller-customization-live-preview-content h1,
  .seller-customization-live-preview-content h2,
  .seller-customization-live-preview-content h3 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Mobile specific layout improvements - FIXED UI ISSUES */
  .seller-customization-live-preview-content .hero-section,
  .seller-customization-live-preview-content .cover-container,
  .seller-customization-live-preview-content .hero-background {
    min-height: 60px !important;
    height: 60px !important;
    overflow: hidden !important;
  }

  .seller-customization-live-preview-content .brand-logo {
    width: 30px !important;
    height: 30px !important;
    margin-bottom: 5px !important;
  }

  .seller-customization-live-preview-content .brand-title,
  .seller-customization-live-preview-content .shop-title {
    font-size: 12px !important;
    line-height: 1.1 !important;
    margin-bottom: 3px !important;
  }

  .seller-customization-live-preview-content .brand-subtitle,
  .seller-customization-live-preview-content .shop-tagline {
    font-size: 8px !important;
    line-height: 1.2 !important;
    margin-bottom: 5px !important;
  }

  .seller-customization-live-preview-content .hero-content {
    padding: 5px !important;
  }

  /* Better mobile grid layout */
  .seller-customization-live-preview-content .products-grid,
  .seller-customization-live-preview-content .creative-products-grid,
  .seller-customization-live-preview-content .showcase-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3px !important;
  }

  /* Mobile contact section */
  .seller-customization-live-preview-content .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
  }

  .seller-customization-live-preview-content .contact-item {
    padding: 2px 4px !important;
    font-size: 8px !important;
  }

  /* Additional fixes for UI breaking issues */
  .seller-customization-live-preview-content .featured-showcase,
  .seller-customization-live-preview-content .contact-showcase {
    padding: 10px 0 !important;
    margin: 5px 0 !important;
  }

  .seller-customization-live-preview-content .content-wrapper {
    min-height: auto !important;
    padding: 0 !important;
  }

  .seller-customization-live-preview-content .showcase-heading,
  .seller-customization-live-preview-content .contact-title {
    font-size: 10px !important;
    margin-bottom: 8px !important;
    line-height: 1.1 !important;
  }

  .seller-customization-live-preview-content .container {
    padding: 0 5px !important;
    max-width: 100% !important;
  }

  .seller-customization-live-preview-content .contact-background {
    padding: 8px !important;
    border-radius: 6px !important;
  }

  /* Fix for background images and overlays */
  .seller-customization-live-preview-content .background-overlay {
    background: rgba(0, 0, 0, 0.3) !important;
  }

  .seller-customization-progress-checklist {
    font-size: 13px;
  }

  .seller-customization-save-customization-btn {
    padding: 10px;
    font-size: 15px;
  }

  .seller-customization-featured-products-preview {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .seller-customization-featured-product-item {
    padding: 10px;
  }

  .seller-customization-featured-product-item .product-image {
    height: 80px;
  }

  .seller-customization-video-play-overlay {
    width: 35px;
    height: 35px;
  }

  .seller-customization-video-play-overlay i {
    font-size: 18px;
  }

  .seller-customization-featured-products-preview-container {
    padding: 12px;
  }

  /* Shop preview content responsive */
  .seller-customization-shop-preview-content {
    padding: 8px !important;
    min-height: 300px !important;
    overflow-x: auto;
  }

  .seller-customization-shop-profile-section {
    padding: 10px !important;
  }

  .seller-customization-shop-logo {
    width: 50px !important;
    height: 50px !important;
  }

  .seller-customization-shop-name {
    font-size: 16px !important;
    margin-bottom: 5px !important;
  }

  .seller-customization-shop-description {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .seller-customization-shop-stats {
    font-size: 11px !important;
    margin-top: 8px !important;
  }

  .seller-customization-shop-stats .stat-item {
    margin-right: 10px !important;
  }
}
