:root {
    --hsro-primary: #0000FF;
    --hsro-primary-hover: #0000cc;
    --hsro-bg-light: #f4f6f9;
    --hsro-border: #e0e0e0;
    --hsro-orange: #ff9800;
    --hsro-green: #2e7d32;
    --hsro-red: #d32f2f;
}

.hsro-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    background: var(--hsro-bg-light);
    border-radius: 12px;
}

.hsro-welcome-bar {
    background: #ffffff;
    border: 2px solid var(--hsro-primary);
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,255,0.08);
}

.hsro-welcome-bar h2 {
    margin: 0 0 5px 0;
    color: var(--hsro-text);
    font-size: 22px;
}

.hsro-welcome-bar h2 span {
    color: var(--hsro-primary);
}

.hsro-welcome-bar p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.hsro-frontend-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--hsro-primary);
    padding-bottom: 10px;
}

.hsro-tab-btn {
    background: #fff;
    color: #333;
    border: 2px solid var(--hsro-border);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.hsro-tab-btn.active, .hsro-tab-btn:hover {
    background: var(--hsro-primary);
    color: #fff;
    border-color: var(--hsro-primary);
}

.hsro-header h2 {
    color: var(--hsro-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.hsro-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.hsro-search-box input, .hsro-summary-actions select {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid var(--hsro-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.hsro-search-box input:focus {
    border-color: var(--hsro-primary);
}

.hsro-dropdown {
    background: #fff;
    border: 1px solid var(--hsro-border);
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    position: absolute;
    width: calc(100% - 40px);
    z-index: 1000;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.hsro-dropdown-item {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.hsro-dropdown-item:hover {
    background-color: #f0f4ff;
    color: var(--hsro-primary);
}

.hsro-btn-link {
    background: none;
    border: none;
    color: var(--hsro-primary);
    text-decoration: underline;
    cursor: pointer;
    margin-left: 10px;
    font-size: 16px;
}

.hsro-summary-bar {
    position: sticky;
    top: 10px;
    z-index: 999;
    background: #ffffff;
    border: 2px solid var(--hsro-primary);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 255, 0.15);
    margin-bottom: 20px;
}

.hsro-summary-stats {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 12px;
}

.hsro-pallet-warning {
    background-color: #fff3e0;
    color: #d84315;
    border: 1px solid var(--hsro-orange);
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 15px;
}

.hsro-summary-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.hsro-btn-primary {
    background-color: #0000FF !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.hsro-btn-primary:hover {
    background-color: #0000cc !important;
}

.hsro-btn-secondary {
    background-color: #ffffff !important;
    color: #0000FF !important;
    border: 2px solid #0000FF !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.2s !important;
    display: inline-block !important;
}

.hsro-btn-secondary:hover {
    background-color: #f0f4ff !important;
}

.hsro-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background: #f0f4ff;
    padding: 15px 18px;
    border-radius: 10px;
    border: 2px solid #0000FF;
    margin-bottom: 20px;
}

.hsro-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hsro-filter-group label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.hsro-filter-group input[type="text"],
.hsro-filter-group select {
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid var(--hsro-border);
    border-radius: 8px;
    background: #fff;
    outline: none;
    height: 44px;
}

.hsro-filter-group input[type="range"] {
    height: 44px;
    cursor: pointer;
}

.hsro-filter-search { flex: 2; min-width: 200px; }
.hsro-filter-price { flex: 1.5; min-width: 170px; }
.hsro-filter-sort { flex: 1.5; min-width: 170px; }
.hsro-filter-perpage { flex: 1; min-width: 110px; }
.hsro-filter-action { flex: 1; min-width: 140px; }

.hsro-btn-filter {
    background-color: #0000FF !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 20px !important;
    height: 44px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background 0.2s !important;
}

.hsro-btn-filter:hover {
    background-color: #0000cc !important;
}

.hsro-table {
    width: 100%;
    border-collapse: collapse;
}

.hsro-table th, .hsro-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--hsro-border);
    vertical-align: middle;
}

.hsro-product-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.hsro-old-price {
    color: #888;
    margin-right: 6px;
    font-size: 14px;
}

.hsro-sale-price {
    color: var(--hsro-red);
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
}

.hsro-badge-sale {
    background-color: var(--hsro-red);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 6px;
    display: inline-block;
}

.hsro-qty-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.hsro-qty-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    background-color: #0000FF !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 24px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
    touch-action: manipulation !important;
    padding: 0 !important;
}

.hsro-qty-btn:active {
    background-color: #0000cc !important;
    transform: scale(0.95);
}

.hsro-qty-input {
    width: 60px !important;
    height: 44px !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: center !important;
    border: 2px solid var(--hsro-border) !important;
    border-radius: 6px !important;
    -moz-appearance: textfield !important;
}

.hsro-qty-input::-webkit-outer-spin-button,
.hsro-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hsro-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hsro-page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 2px solid #0000FF;
    background-color: #ffffff;
    color: #0000FF;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.hsro-page-btn.active, .hsro-page-btn:hover {
    background-color: #0000FF;
    color: #ffffff;
}

.hsro-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsro-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 650px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.hsro-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

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

.hsro-modal-footer {
    margin-top: 20px;
    text-align: right;
    border-top: 1px solid var(--hsro-border);
    padding-top: 15px;
}

.hsro-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.hsro-summary-table th, .hsro-summary-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.hsro-alert-success {
    background-color: #e8f5e9;
    color: var(--hsro-green);
    border: 2px solid var(--hsro-green);
    padding: 20px;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

.hsro-alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 2px solid #c62828;
    padding: 20px;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}