/* Admin Styles */
.hito-outlet-admin {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.hito-outlet-sidebar {
    flex: 1;
    min-width: 400px;
}

.hito-outlet-pools-list {
    flex: 2;
}

.hito-outlet-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-field input[type="text"],
.form-field input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-search {
    position: relative;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.product-search:focus-within #search-results {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.result-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.result-info {
    flex: 1;
}

.result-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.result-meta {
    font-size: 12px;
    color: #666;
}

.selected-products {
    margin-top: 10px;
    min-height: 50px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.selected-product {
    display: inline-flex;
    align-items: center;
    background: #e8f5e9;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 12px;
}

.selected-product .remove-product {
    background: none;
    border: none;
    margin-left: 6px;
    cursor: pointer;
    color: #f44336;
    font-weight: bold;
}

.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pool-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.pool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pool-header h3 {
    margin: 0;
    font-size: 18px;
}

.discount-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.pool-body {
    padding: 15px;
}

.pool-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

/* Frontend Styles */
.hito-outlet-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
}

.hito-outlet-badge span {
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
}

.outlet-label {
    background: #ff4444;
    color: white;
}

.discount-percentage {
    background: #ff9800;
    color: white;
}

.hito-outlet-single-info {
    margin-bottom: 20px;
}

.outlet-badge-large {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.outlet-badge-large .discount-percentage {
    background: #ff9800;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 3px;
}

.outlet-pricing {
    font-size: 24px;
    margin-top: 10px;
}

.outlet-pricing del {
    color: #999;
    margin-right: 10px;
}

.outlet-pricing ins {
    color: #ff4444;
    text-decoration: none;
    font-weight: bold;
}

/* Shortcode Grid */
.hito-outlet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.hito-outlet-product {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hito-outlet-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.outlet-badge-shortcode {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.outlet-badge-shortcode .outlet-label {
    background: #fff;
    color: #1f1f1d;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    text-align: center;
}

.outlet-badge-shortcode .discount-percentage {
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    font-size: 17px;
    font-weight: bold;
    border-radius: 3px;
    text-align: center;
}

.product-details {
    padding: 13px;
}

.product-title {
    margin: 0 0 10px;
    font-size: 16px;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #ff4444;
}

.variation-attributes {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    margin-bottom: 15px;
    font-size: 18px;
}

.product-price del {
    color: #999;
    margin-right: 8px;
    font-size: 14px;
}

.product-price ins {
    color: #ff4444;
    text-decoration: none;
    font-weight: bold;
}

.product-actions .button {
    width: 100%;
    text-align: center;
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.product-actions .button:hover {
    background: #cc0000;
}

/* Responsive */
@media (max-width: 768px) {
    .hito-outlet-admin {
        flex-direction: column;
    }
    
    .hito-outlet-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .pools-grid {
        grid-template-columns: 1fr;
    }
}