/* Placeholder Loading */
.amz-display-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    min-height: 200px;
    margin: 20px 0;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.amz-display-loaded {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Box Template */
.amz-display-box {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.amz-display-image {
    flex: 0 0 150px;
    margin-right: 20px;
}

.amz-display-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.amz-display-info {
    flex: 1;
}

.amz-display-info h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.amz-display-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.amz-display-price {
    font-size: 1.5em;
    color: #B12704;
    font-weight: bold;
    margin: 0;
}

.amz-display-button {
    display: inline-block;
    background: #FF9900;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.amz-display-button:hover {
    background: #e68a00;
    text-decoration: none;
}

/* Grid & List Styles */
.amz-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.amz-display-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

/* Admin Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}
